chiark / gitweb /
[PATCH] udev_volume_id: fix -d option
authorcborntra@de.ibm.com <cborntra@de.ibm.com>
Sun, 30 Jan 2005 12:09:38 +0000 (13:09 +0100)
committerGreg KH <gregkh@suse.de>
Wed, 27 Apr 2005 06:21:58 +0000 (23:21 -0700)
The -d option in udev_allows to go from a partition to the underlying disk
for s390 dasd labels. If the device is already the disk itself, finding the
parent will fail, therefore -d on /sys/block/dasda/ for example gives no
result at all.

extras/volume_id/udev_volume_id.c

index 3fab54786b7a09af7519767a5ab5723eb022fc45..7b6985680414837457996c4a298be3a930487c43 100644 (file)
@@ -186,7 +186,7 @@ int main(int argc, char *argv[])
                if (class_dev_parent != NULL)
                        vid = open_classdev(class_dev_parent);
                else
-                       vid = open_classdev(class_dev_parent);
+                       vid = open_classdev(class_dev);
                if (vid == NULL)
                        goto exit;