From: Robby Workman <rw@rlworkman.net>
To: linux-hotplug@vger.kernel.org
Subject: Two issues - cdrom_id and duplicate /sys entries
Date: Sun, 29 Apr 2007 05:09:33 +0000 [thread overview]
Message-ID: <4634288D.9000900@rlworkman.net> (raw)
First, it seems that /lib/udev/cdrom_id is not exporting correct
information about the capabilities of optical media drives.
This system contains a Lite-On combo cd writer / dvd reader and
an NEC dvd writer drive, but the cdrom_id binary returns this for
each of them:
root@isotope:/lib/udev# ./cdrom_id --export /dev/sr{0,1,2,3}
ID_CDROM=1
See http://rlworkman.net/attr-walk/ for the udevinfo attribute
walks on each of the devices.
Of course, this brings up the second issue: there are only two
optical drives in this box, and there are four devices created.
0 and 2 are essentially "mirrors" of one another, as are 1 and 3.
Interestingly enough, after dumping the udevinfo output to the
files linked above, sr1 and sr3 show different sizes, even though
they are the same drive. A diff of the respective files shows a
few more things that are different, but none as strange as the
size difference... :/
bash-3.2$ grep size sr?-attributes
sr0-attributes: ATTR{size}="2097151"
sr1-attributes: ATTR{size}="4"
sr2-attributes: ATTR{size}="2097151"
sr3-attributes: ATTR{size}="9143552"
Ideas? :)
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
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
next reply other threads:[~2007-04-29 5:09 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-04-29 5:09 Robby Workman [this message]
2007-04-29 5:11 ` Two issues - cdrom_id and duplicate /sys entries Robby Workman
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=4634288D.9000900@rlworkman.net \
--to=rw@rlworkman.net \
--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).