From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christian =?iso-8859-15?q?Borntr=E4ger?= Date: Fri, 28 Jan 2005 13:41:26 +0000 Subject: [BUG, Patch] udev_volume_id -d option is broken Message-Id: <200501281441.26113.cborntra@de.ibm.com> MIME-Version: 1 Content-Type: multipart/mixed; boundary="Boundary-00=_GEk+BvrJHhdO/Ws" List-Id: To: linux-hotplug@vger.kernel.org --Boundary-00=_GEk+BvrJHhdO/Ws Content-Type: text/plain; charset="iso-8859-15" Content-Transfer-Encoding: 7bit Content-Disposition: inline Hello all, 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. This patch seems to fix this issue. --Boundary-00=_GEk+BvrJHhdO/Ws Content-Type: text/x-diff; charset="iso-8859-15"; name="dasd1.patch" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="dasd1.patch" diff -u udev-050/extras/volume_id/udev_volume_id.c new/extras/volume_id/udev_volume_id.c --- udev-050/extras/volume_id/udev_volume_id.c 2004-12-18 06:53:07.000000000 +0100 +++ new/extras/volume_id/udev_volume_id.c 2005-01-27 19:15:39.598923207 +0100 @@ -187,7 +186,7 @@ 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; --Boundary-00=_GEk+BvrJHhdO/Ws-- ------------------------------------------------------- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl _______________________________________________ Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net Linux-hotplug-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel