linux-hotplug.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Svetoslav Slavtchev" <svetljo@gmx.de>
To: linux-hotplug@vger.kernel.org
Subject: Re: udev.rules.devfs + symlinks & a question
Date: Fri, 12 Dec 2003 22:17:02 +0000	[thread overview]
Message-ID: <marc-linux-hotplug-107126770930593@msgid-missing> (raw)
In-Reply-To: <marc-linux-hotplug-107105799027697@msgid-missing>

Hi again :-)

> On Thu, Dec 11, 2003 at 12:19:57AM +0100, Svetoslav Slavtchev wrote:
> > > On Wed, Dec 10, 2003 at 11:45:24PM +0100, Svetoslav Slavtchev wrote:
> > > > > > and i'm not sure how can i distinguish a cd drive from a hard
> drive
> > > > > 
> > > > > For scsi cdroms it's easy, look at the type file in sysfs.  For
> ide
> > > > > cdroms, code needs to be added to the kernel to export that
> > > information
> > > > > for you to determine this.
> > > > 
> > > > hm, i was browsing the thread a while ago, but didnt get it fully
> > > > there were some issues with using 2 rules for one device,
> > > 
> > > You would not need 2 rules.  One a "is this a cdrom" rule.  If not,
> then
> > > it would fall down into the "is this a disk" rule.  Something like:
> > > 	LABEL, BUS="scsi", type="cdrom", NAME="cdrom%n"
> > > 	LABEL, BUS="scsi", type="disk", NAME="lun0/%D"
> > > You get the idea...
> > 
> > and what if it is a tape, scanner, or smth else ?
> 
> I don't know the devfs naming scheme, so you will have to figure that
> out yourself :)

again repling to myself :-)
it looks like scsi exports all the needed information,
but i run ide and it doesn't export it :(

> > and where are the patches ?
> 
> Working on getting them together.  Need to get some USB fixes to Linus
> first, that's more important.

haven't you already submited them ?-)

i've extracted something from your tree usb-2.5
but i'm not sure if everything is in place, and 
if i haven't missed some bits
could you may be take a look at MSxx series 
http://varna.demon.co.uk/~svetlio/cook/2.6/udev/

it does boot and it seems to work
/* and my "/udev" is getting near to /dev filled by devfs */
although udev doesn't register 2 devices
under devfs - snd/seq & snd/timer

and i'm wondering how could i make a rule 
to register a number of devices (with strange names :) )
with the same names in /udev/snd/ , not in /udev
----------------------------------------
[svetljo@svetljo snd]$ ls /dev/snd/
controlC0  midiC0D0  midiC0D2  pcmC0D0c  pcmC0D1c  
pcmC0D3p  timer hwC0D0     midiC0D1  midiC0D3  
pcmC0D0p  pcmC0D2c  seq
----------------------------------------

i couldn't find anything regarding raw 
devices in the usb-2.5 tree :(

best,

svetljo

-- 
+++ GMX - die erste Adresse für Mail, Message, More +++
Neu: Preissenkung für MMS und FreeMMS! http://www.gmx.net




-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills.  Sign up for IBM's
Free Linux Tutorials.  Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id\x1278&alloc_id371&op=click
_______________________________________________
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

  parent reply	other threads:[~2003-12-12 22:17 UTC|newest]

Thread overview: 42+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-12-10 12:01 udev.rules.devfs + symlinks & a question Svetoslav Slavtchev
2003-12-10 12:31 ` Arnd Bergmann
2003-12-10 13:17 ` Svetoslav Slavtchev
2003-12-10 17:00 ` Marco d'Itri
2003-12-10 22:07 ` Greg KH
2003-12-10 22:45 ` Svetoslav Slavtchev
2003-12-10 23:14 ` Greg KH
2003-12-10 23:19 ` Svetoslav Slavtchev
2003-12-11  0:17 ` Greg KH
2003-12-11  1:14 ` Svetoslav Slavtchev
2003-12-11  1:31 ` Svetoslav Slavtchev
2003-12-12 22:17 ` Svetoslav Slavtchev [this message]
2003-12-12 23:42 ` Greg KH
2003-12-12 23:43 ` Greg KH
2003-12-12 23:45 ` Greg KH
2003-12-13  0:02 ` Svetoslav Slavtchev
2003-12-13  0:06 ` Greg KH
2003-12-13  0:39 ` Svetoslav Slavtchev
2003-12-13  0:57 ` Greg KH
2003-12-13  0:58 ` Svetoslav Slavtchev
2003-12-13  1:17 ` Svetoslav Slavtchev
2003-12-13 15:47 ` Kay Sievers
2003-12-13 21:33 ` Svetoslav Slavtchev
2003-12-14  3:34 ` Kay Sievers
2003-12-15 22:55 ` Greg KH
2003-12-15 22:56 ` Greg KH
2003-12-15 22:57 ` Greg KH
2003-12-17 20:16 ` Svetoslav Slavtchev
2003-12-17 20:39 ` Svetoslav Slavtchev
2003-12-17 21:13 ` Svetoslav Slavtchev
2003-12-17 22:24 ` Greg KH
2003-12-17 22:25 ` Greg KH
2003-12-17 22:27 ` Greg KH
2003-12-17 22:28 ` Greg KH
2003-12-17 22:29 ` Greg KH
2003-12-17 22:30 ` Greg KH
2003-12-17 22:51 ` Marco d'Itri
2003-12-17 22:55 ` Svetoslav Slavtchev
2003-12-17 22:59 ` Svetoslav Slavtchev
2003-12-17 23:04 ` Svetoslav Slavtchev
2003-12-17 23:06 ` Svetoslav Slavtchev
2003-12-17 23:08 ` Greg KH

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=marc-linux-hotplug-107126770930593@msgid-missing \
    --to=svetljo@gmx.de \
    --cc=linux-hotplug@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).