chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
43ca395
)
[PATCH] udev_volume_id: fix -d option
author
cborntra@de.ibm.com
<cborntra@de.ibm.com>
Sun, 30 Jan 2005 12:09:38 +0000
(13:09 +0100)
committer
Greg 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
patch
|
blob
|
history
diff --git
a/extras/volume_id/udev_volume_id.c
b/extras/volume_id/udev_volume_id.c
index 3fab54786b7a09af7519767a5ab5723eb022fc45..7b6985680414837457996c4a298be3a930487c43 100644
(file)
--- 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;