From mboxrd@z Thu Jan 1 00:00:00 1970 From: Robby Workman Date: Sun, 29 Apr 2007 05:11:31 +0000 Subject: Re: Two issues - cdrom_id and duplicate /sys entries Message-Id: <46342903.5060606@rlworkman.net> List-Id: References: <4634288D.9000900@rlworkman.net> In-Reply-To: <4634288D.9000900@rlworkman.net> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org This is on Slackware -current, but with 2.6.21 kernel and udev-109. Sorry for omitting that the first time... :/ Robby Workman wrote: > 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? :) -- http://rlworkman.net ------------------------------------------------------------------------- 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