linux-hotplug.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [BUG, Patch] udev_volume_id -d option is broken
@ 2005-01-28 13:41 Christian Bornträger
  2005-01-30  4:36 ` Kay Sievers
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Christian Bornträger @ 2005-01-28 13:41 UTC (permalink / raw)
  To: linux-hotplug

[-- Attachment #1: Type: text/plain, Size: 292 bytes --]

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.


[-- Attachment #2: dasd1.patch --]
[-- Type: text/x-diff, Size: 470 bytes --]

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;
 

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2005-02-08 19:46 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-01-28 13:41 [BUG, Patch] udev_volume_id -d option is broken Christian Bornträger
2005-01-30  4:36 ` Kay Sievers
2005-02-04 13:59 ` Kay Sievers
2005-02-07 18:39 ` Christian Borntraeger
2005-02-08 19:46 ` Kay Sievers

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).