Hello all,
come to think of it, exclusion of CD/DVD type devices by major number
might be more reliable than simple device path string comparison. Please
see the attached patch.
Thanks & best regards,
Frank Fegert
diff -rui partconf.orig/find-parts.c partconf/find-parts.c
--- partconf.orig/find-parts.c 2013-02-15 16:35:30.394743001 +0100
+++ partconf/find-parts.c 2013-02-16 16:58:17.090742993 +0100
@@ -175,6 +175,7 @@
PedDevice *dev = NULL;
PedDisk *disk;
PedPartition *part;
+ struct stat st;
ped_device_probe_all();
while ((dev = ped_device_get_next(dev)) != NULL) {
@@ -182,6 +183,9 @@
continue;
if (strstr(dev->path, "/dev/mtd") == dev->path)
continue;
+ if (stat(dev->path, &st) == 0)
+ if (major(st.st_rdev) == 11)
+ continue;
if (!ped_disk_probe(dev))
continue;
disk = ped_disk_new(dev);