Added recognition of /dev/mmcblk* SD/MMC devices

svn path=/trunk/; revision=1079
This commit is contained in:
Curtis Gedak 2009-02-25 20:42:44 +00:00
parent 93bacdc1bc
commit 14363d96f4
2 changed files with 39 additions and 30 deletions

View File

@ -1,3 +1,8 @@
2009-02-25 Curtis Gedak <gedakc@gmail.com>
* src/GParted_Core.cc: Added recognition of /dev/mmcblk* SD/MMC devices.
- Closes GParted bug #564985
2009-02-23 Curtis Gedak <gedakc@gmail.com>
* include/Utils.h,

View File

@ -183,6 +183,10 @@ void GParted_Core::set_devices( std::vector<Device> & devices )
//Whole disk devices are the ones we want.
//Device names without a trailing digit refer to the whole disk.
device = Utils::regexp_label(line, "^[\t ]+[0-9]+[\t ]+[0-9]+[\t ]+[0-9]+[\t ]+([^0-9]+)$") ;
//Recognize /dev/mmcblk* devices.
//E.g., device = /dev/mmcblk0, partition = /dev/mmcblk0p1
if ( device == "" )
device = Utils::regexp_label(line, "^[\t ]+[0-9]+[\t ]+[0-9]+[\t ]+[0-9]+[\t ]+(mmcblk[0-9]+)$") ;
//Device names that end with a #[^p]# are HP Smart Array Devices (disks)
//E.g., device = /dev/cciss/c0d0, partition = /dev/cciss/c0d0p1
if ( device == "" )