From: cborntra@de.ibm.com Date: Sun, 30 Jan 2005 12:09:38 +0000 (+0100) Subject: [PATCH] udev_volume_id: fix -d option X-Git-Tag: 051~4 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=commitdiff_plain;h=61b24e5e19fb189cfce7ff323c58e1bb1d7cce4d;hp=43ca395e49c854b6c3bb9abb633e9e072e5df793 [PATCH] udev_volume_id: fix -d option 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. --- diff --git a/extras/volume_id/udev_volume_id.c b/extras/volume_id/udev_volume_id.c index 3fab54786..7b6985680 100644 --- a/extras/volume_id/udev_volume_id.c +++ b/extras/volume_id/udev_volume_id.c @@ -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;