From mboxrd@z Thu Jan 1 00:00:00 1970 From: Olivier Blin Date: Mon, 26 Mar 2007 12:29:25 +0000 Subject: Re: [RFC] persistent-cd does not create /dev/dvd if dvd-drive is Message-Id: List-Id: References: <200703211936.33595.zzam@gentoo.org> In-Reply-To: <200703211936.33595.zzam@gentoo.org> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable To: linux-hotplug@vger.kernel.org Matthias Schwarzott writes: > Hi there! > > Does anyone already has a solution how to create /dev/dvd with=20 > persistent-cd-rules, even if first cd-drive does not support dvds. > > I have two ideas (but no code): > 1. Use new priorities for symlinks, and add rules like this for every=20 > dvd-capable device: > > ENV{ID_CDROM}=3D"?*", ENV{ID_SERIAL}=3D"IDE_DVD-ROM_16X_00000000000000019= 138",=20 > SYMLINK+=3D"dvd", OPTIONS=3D"link_priority=3DPRIO" > > with decreasing priority related to $link_num. > > 2. Everytime adding a dvd-device, let write_cd_rules scan for a rule sett= ing=20 > the name dvd, and adding it for this one if nothing can be found. That's basically how we do it in Mandriva. We add a "dvd" alias if none is found, and always a "dvd" alias. Please see our cdrom helper scripts here: http://svn.mandriva.com/cgi-bin/viewvc.cgi/packages/cooker/udev/current/SOU= RCES/udev_cdrom_helper?view=3Dmarkup http://svn.mandriva.com/cgi-bin/viewvc.cgi/packages/cooker/udev/current/SOU= RCES/udev_persistent_lib.sh?view=3Dmarkup Regards --=20 Olivier Blin - Mandriva ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=3Djoin.php&p=3Dsourceforge&CID=DEVD= EV _______________________________________________ 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