From mboxrd@z Thu Jan 1 00:00:00 1970 From: Moshe Yudkowsky Date: Thu, 29 Dec 2005 00:10:24 +0000 Subject: Re: new version of udev has different cd/dvd devices Message-Id: <43B32970.1070101@pobox.com> List-Id: References: <43B313ED.40402@bl.com> In-Reply-To: <43B313ED.40402@bl.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable To: linux-hotplug@vger.kernel.org Marco d'Itri wrote: > On Dec 28, Moshe Yudkowsky wrote: >=20 >=20 >>The latest udev (0.079) puts the second drive only for /dev/cdrom, cdrw, = >> dvd, and dvdrw. the udev distro under Debian has these rules: > ENV{ID_CDROM}=3D"?*", SYMLINK+=3D"cdrom%e" > ENV{ID_CDROM_CD_RW}=3D"?*", SYMLINK+=3D"cdrw%e" > ENV{ID_CDROM_DVD}=3D"?*", SYMLINK+=3D"dvd%e" > ENV{ID_CDROM_DVD_R}=3D"?*", SYMLINK+=3D"dvdrw%e" When I modify them to remove the "%e": > ENV{ID_CDROM}=3D"?*", SYMLINK+=3D"cdrom" > ENV{ID_CDROM_CD_RW}=3D"?*", SYMLINK+=3D"cdrw" > ENV{ID_CDROM_DVD}=3D"?*", SYMLINK+=3D"dvd" > ENV{ID_CDROM_DVD_R}=3D"?*", SYMLINK+=3D"dvdrw" followed by rmmod ide-cd, modprobe ide-cd, I get the same behavior: > lrwxrwxrwx 1 root root 30 Dec 28 17:29 /dev/cdrom -> ide/host0/bus1/targe= t1/lun0/cd > lrwxrwxrwx 1 root root 30 Dec 28 17:29 /dev/cdrw -> ide/host0/bus1/target= 1/lun0/cd I.e., they're both pointing to the same drive. udevmonitor --env reveals what the problem seems to be: First comes the 1,1,0 drive: > UDEV [1135814449.322164] remove@/block/hdd > UDEV_LOG=3D3 > ACTION=3Dremove > DEVPATH=3D/block/hdd > SUBSYSTEM=3Dblock > SEQNUM=1166 > MINORd > MAJOR" > PHYSDEVPATH=3D/devices/ide1/1.1 > PHYSDEVBUS=3Dide > PHYSDEVDRIVER=3Dide-cdrom > UDEVD_EVENT=3D1 > DEVNAME=3D/dev/ide/host0/bus1/target1/lun0/cd > ID_CDROM=3D1 > ID_CDROM_CD_R=3D1 > ID_CDROM_CD_RW=3D1 > ID_CDROM_DVD=3D1 > ID_CDROM_DVD_R=3D1 > ID_CDROM_MRW=3D1 > ID_CDROM_MRW_W=3D1 > ID_CDROM_RAM=3D1 > ID_TYPE=CD > ID_MODEL=3DTSSTcorpCDDVDW_TS-H552B > ID_SERIAL=3DTS-H552BFirmware > ID_REVISION=3DTS04 > ID_BUS=3Data > ID_PATH=3Dpcmcia--ide-1:1 Next comes the 1,0,0 drive: > UDEV [1135814449.429480] remove@/block/hdc > UDEV_LOG=3D3 > ACTION=3Dremove > DEVPATH=3D/block/hdc > SUBSYSTEM=3Dblock > SEQNUM=1167 > MINOR=3D0 > MAJOR" > PHYSDEVPATH=3D/devices/ide1/1.0 > PHYSDEVBUS=3Dide > PHYSDEVDRIVER=3Dide-cdrom > UDEVD_EVENT=3D1 > DEVNAME=3D/dev/ide/host0/bus1/target0/lun0/cd > ID_CDROM=3D1 > ID_CDROM_CD_R=3D1 > ID_CDROM_CD_RW=3D1 > ID_CDROM_DVD=3D1 > ID_CDROM_MRW=3D1 > ID_CDROM_MRW_W=3D1 > ID_CDROM_RAM=3D1 > ID_TYPE=CD > ID_MODEL=3DHL-DT-ST_RWDVD_GCC-4320B > ID_SERIAL> ID_REVISION=3D1.01 > ID_BUS=3Data > ID_PATH=3Dpcmcia--ide-1:0 In other words, the rules match either drive completely, if I'm reading=20 the rules correctly. In the meantime, I've modified fstab to use /dev/cdroms/cdrom{0,1}, but=20 it'd be nice to figure out what happened here! --=20 Moshe Yudkowsky * moshe@pobox.com * www.pobox.com/~moshe "The price of a tyrant's victory is eternal vigilance... This was once considered the price of liberty. Nothing buys what it used to." -- Pat Cadigan ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_idv37&alloc_id=16865&op=3Dclick _______________________________________________ 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