From mboxrd@z Thu Jan 1 00:00:00 1970 From: Matthias Schwarzott Date: Wed, 21 Mar 2007 18:36:33 +0000 Subject: [RFC] persistent-cd does not create /dev/dvd if dvd-drive is second Message-Id: <200703211936.33595.zzam@gentoo.org> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable To: linux-hotplug@vger.kernel.org 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_0000000000000001913= 8",=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 settin= g=20 the name dvd, and adding it for this one if nothing can be found. What do you think is better/possible/sane solution. Matthias --=20 Matthias Schwarzott (zzam) ------------------------------------------------------------------------- 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