From: "Christian Bornträger" <cborntra@de.ibm.com>
To: linux-hotplug@vger.kernel.org
Subject: [BUG, Patch] udev_volume_id -d option is broken
Date: Fri, 28 Jan 2005 13:41:26 +0000 [thread overview]
Message-ID: <200501281441.26113.cborntra@de.ibm.com> (raw)
[-- 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;
next reply other threads:[~2005-01-28 13:41 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-01-28 13:41 Christian Bornträger [this message]
2005-01-30 4:36 ` [BUG, Patch] udev_volume_id -d option is broken Kay Sievers
2005-02-04 13:59 ` Kay Sievers
2005-02-07 18:39 ` Christian Borntraeger
2005-02-08 19:46 ` Kay Sievers
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200501281441.26113.cborntra@de.ibm.com \
--to=cborntra@de.ibm.com \
--cc=linux-hotplug@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).