linux-hotplug.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [RFC] persistent-cd does not create /dev/dvd if dvd-drive is second
@ 2007-03-21 18:36 Matthias Schwarzott
  2007-03-21 18:42 ` [RFC] persistent-cd does not create /dev/dvd if dvd-drive is Marco d'Itri
  2007-03-26 12:29 ` Olivier Blin
  0 siblings, 2 replies; 3+ messages in thread
From: Matthias Schwarzott @ 2007-03-21 18:36 UTC (permalink / raw)
  To: linux-hotplug

Hi there!

Does anyone already has a solution how to create /dev/dvd with 
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 
dvd-capable device:

ENV{ID_CDROM}="?*", ENV{ID_SERIAL}="IDE_DVD-ROM_16X_00000000000000019138", 
SYMLINK+="dvd", OPTIONS="link_priority=PRIO"

with decreasing priority related to $link_num.

2. Everytime adding a dvd-device, let write_cd_rules scan for a rule setting 
the name dvd, and adding it for this one if nothing can be found.

What do you think is better/possible/sane solution.

Matthias

-- 
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=join.php&p=sourceforge&CIDÞVDEV
_______________________________________________
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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [RFC] persistent-cd does not create /dev/dvd if dvd-drive is
  2007-03-21 18:36 [RFC] persistent-cd does not create /dev/dvd if dvd-drive is second Matthias Schwarzott
@ 2007-03-21 18:42 ` Marco d'Itri
  2007-03-26 12:29 ` Olivier Blin
  1 sibling, 0 replies; 3+ messages in thread
From: Marco d'Itri @ 2007-03-21 18:42 UTC (permalink / raw)
  To: linux-hotplug

On Mar 21, Matthias Schwarzott <zzam@gentoo.org> wrote:

> What do you think is better/possible/sane solution.
AFAIK there is no sane solution, so I choose to ignore the program in
Debian.

-- 
ciao,
Marco

-------------------------------------------------------------------------
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=join.php&p=sourceforge&CIDÞVDEV
_______________________________________________
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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [RFC] persistent-cd does not create /dev/dvd if dvd-drive is
  2007-03-21 18:36 [RFC] persistent-cd does not create /dev/dvd if dvd-drive is second Matthias Schwarzott
  2007-03-21 18:42 ` [RFC] persistent-cd does not create /dev/dvd if dvd-drive is Marco d'Itri
@ 2007-03-26 12:29 ` Olivier Blin
  1 sibling, 0 replies; 3+ messages in thread
From: Olivier Blin @ 2007-03-26 12:29 UTC (permalink / raw)
  To: linux-hotplug

Matthias Schwarzott <zzam@gentoo.org> writes:

> Hi there!
>
> Does anyone already has a solution how to create /dev/dvd with 
> 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 
> dvd-capable device:
>
> ENV{ID_CDROM}="?*", ENV{ID_SERIAL}="IDE_DVD-ROM_16X_00000000000000019138", 
> SYMLINK+="dvd", OPTIONS="link_priority=PRIO"
>
> with decreasing priority related to $link_num.
>
> 2. Everytime adding a dvd-device, let write_cd_rules scan for a rule setting 
> 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<index>" alias.

Please see our cdrom helper scripts here:
http://svn.mandriva.com/cgi-bin/viewvc.cgi/packages/cooker/udev/current/SOURCES/udev_cdrom_helper?view=markup
http://svn.mandriva.com/cgi-bin/viewvc.cgi/packages/cooker/udev/current/SOURCES/udev_persistent_lib.sh?view=markup

Regards

-- 
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=join.php&p=sourceforge&CIDÞVDEV
_______________________________________________
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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2007-03-26 12:29 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-03-21 18:36 [RFC] persistent-cd does not create /dev/dvd if dvd-drive is second Matthias Schwarzott
2007-03-21 18:42 ` [RFC] persistent-cd does not create /dev/dvd if dvd-drive is Marco d'Itri
2007-03-26 12:29 ` Olivier Blin

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).