* Re: udev.rules.devfs + symlinks & a question
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
` (39 subsequent siblings)
40 siblings, 0 replies; 42+ messages in thread
From: Arnd Bergmann @ 2003-12-10 12:31 UTC (permalink / raw)
To: linux-hotplug
On Wednesday 10 December 2003 13:01, Svetoslav Slavtchev wrote:
> let's start with the question
>
> i'm still missing a number of devices, how should i get them in /udev ?
> these are the raw , pty and pts devices
These, and more, currently lack class device support in the kernel.
As an example, you can look at Greg's tty class in drivers/char/tty_io.c
AFAICS, pty and pts devices need not be created if you use the /dev/pts
file system, although you could register them as tty class devices.
Aside from raw devices, we need at least support for tape and misc devices
(both have been discussed before here) and there are probable others.
> and there is a spelling issue either in devfs or -D :-)
> according to devfs hole disks are named "disc"
> according to -D they are named "disk"
> to me the second is more correct, but as it was added just for devfs
> compatibility it should be probably changed to what devfs use "disc"
When I wrote the patch for %D, I had only dasd devices in mind, which
actually used 'disk', not 'disc' in devfs. Maybe we need both variants,
e.g. %d for disc and %D for disk?
Which drivers are using the disc name, is it only ide or are there others?
Arnd <><
-------------------------------------------------------
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
^ permalink raw reply [flat|nested] 42+ messages in thread* Re: udev.rules.devfs + symlinks & a question
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
` (38 subsequent siblings)
40 siblings, 0 replies; 42+ messages in thread
From: Svetoslav Slavtchev @ 2003-12-10 13:17 UTC (permalink / raw)
To: linux-hotplug
> On Wednesday 10 December 2003 13:01, Svetoslav Slavtchev wrote:
>
> > let's start with the question
> >
> > i'm still missing a number of devices, how should i get them in /udev ?
> > these are the raw , pty and pts devices
>
> These, and more, currently lack class device support in the kernel.
> As an example, you can look at Greg's tty class in drivers/char/tty_io.c
> AFAICS, pty and pts devices need not be created if you use the /dev/pts
> file system, although you could register them as tty class devices.
ok
> Aside from raw devices, we need at least support for tape and misc devices
> (both have been discussed before here) and there are probable others.
Greg has posted a patch for misc devices, so then raw & tape are the missing
> > and there is a spelling issue either in devfs or -D :-)
> > according to devfs hole disks are named "disc"
> > according to -D they are named "disk"
> > to me the second is more correct, but as it was added just for devfs
> > compatibility it should be probably changed to what devfs use "disc"
>
> When I wrote the patch for %D, I had only dasd devices in mind, which
> actually used 'disk', not 'disc' in devfs. Maybe we need both variants,
> e.g. %d for disc and %D for disk?
> Which drivers are using the disc name, is it only ide or are there others?
according to my hardware scsi devices use "disc" too
/* just pluged in a usb zip drive */
for other hardware i don't know
which reminds me,
couldn't the -D or -d modifier create the path to the device
it's the same for ide & scsi /* except the trailing ide/scsi */
" /host0/bus0/target0/lun0/ " from the id
for a generic udev.rules that should work on most systems
at least 10-20 lines are needed only for ide/scsi disks
best,
svetljo
PS
for cd devices "cd" is used instead of "disk",
but can we distinguish cd's from hard drives in sysfs?
--
+++ 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
^ permalink raw reply [flat|nested] 42+ messages in thread* Re: udev.rules.devfs + symlinks & a question
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
` (37 subsequent siblings)
40 siblings, 0 replies; 42+ messages in thread
From: Marco d'Itri @ 2003-12-10 17:00 UTC (permalink / raw)
To: linux-hotplug
On Dec 10, Svetoslav Slavtchev <svetljo@gmx.de> wrote:
>according to my hardware scsi devices use "disc" too
Everything in devfs uses disc IIRC. I even remember a thread on LKML
about this.
>PS
>for cd devices "cd" is used instead of "disk",
>but can we distinguish cd's from hard drives in sysfs?
We discussed this last week, more kernel support is needed for this (and
then an interface in the config file).
--
ciao, |
Marco | [3564 pr4Q1yP37wchM]
-------------------------------------------------------
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
^ permalink raw reply [flat|nested] 42+ messages in thread* Re: udev.rules.devfs + symlinks & a question
2003-12-10 12:01 udev.rules.devfs + symlinks & a question Svetoslav Slavtchev
` (2 preceding siblings ...)
2003-12-10 17:00 ` Marco d'Itri
@ 2003-12-10 22:07 ` Greg KH
2003-12-10 22:45 ` Svetoslav Slavtchev
` (36 subsequent siblings)
40 siblings, 0 replies; 42+ messages in thread
From: Greg KH @ 2003-12-10 22:07 UTC (permalink / raw)
To: linux-hotplug
On Wed, Dec 10, 2003 at 01:01:37PM +0100, Svetoslav Slavtchev wrote:
> Hi,
>
> udev_bk is looking really great :-)
> great work , isn't it time for a 0.009 or 0.1 release?
What's with the '.'? 009 will be the next release, hopefully soon, I'm
waiting on some stuff from the libsysfs authors...
> let's start with the question
>
> i'm still missing a number of devices, how should i get them in /udev ?
> these are the raw , pty and pts devices
pty and pts are handled by the devpts filesystem.
For raw devices I have a patch floating around in my kernel tree that
needs to be looked at a bunch. Care to test it out?
> also does anyone have links to the patches that add sound support ?
Again, I have patches, but don't think they are ready for prime time. I
want to get these out soon, need to stop answering dumb devfs vs udev
questions on lkml...
> attached is my udev.rules,
> which brings me directory structure almost(completely?) equivelent
> to the devfs one, except that some devices are still missing
> ( tree /udev = tree-udev.txt, missing entries from /dev = tree-dev.txt )
>
> 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.
> and there is a spelling issue either in devfs or -D :-)
> according to devfs hole disks are named "disc"
> according to -D they are named "disk"
> to me the second is more correct, but as it was added just for devfs
> compatibility it should be probably changed to what devfs use "disc"
Good point, I'll go change that.
thanks,
greg k-h
-------------------------------------------------------
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
^ permalink raw reply [flat|nested] 42+ messages in thread* Re: udev.rules.devfs + symlinks & a question
2003-12-10 12:01 udev.rules.devfs + symlinks & a question Svetoslav Slavtchev
` (3 preceding siblings ...)
2003-12-10 22:07 ` Greg KH
@ 2003-12-10 22:45 ` Svetoslav Slavtchev
2003-12-10 23:14 ` Greg KH
` (35 subsequent siblings)
40 siblings, 0 replies; 42+ messages in thread
From: Svetoslav Slavtchev @ 2003-12-10 22:45 UTC (permalink / raw)
To: linux-hotplug
> On Wed, Dec 10, 2003 at 01:01:37PM +0100, Svetoslav Slavtchev wrote:
> > Hi,
> >
> > udev_bk is looking really great :-)
> > great work , isn't it time for a 0.009 or 0.1 release?
>
> What's with the '.'? 009 will be the next release, hopefully soon, I'm
> waiting on some stuff from the libsysfs authors...
oops, sorry
> > let's start with the question
> >
> > i'm still missing a number of devices, how should i get them in /udev ?
> > these are the raw , pty and pts devices
>
> pty and pts are handled by the devpts filesystem.
ok
> For raw devices I have a patch floating around in my kernel tree that
> needs to be looked at a bunch. Care to test it out?
yep, not that i use them much,but i'll at least make some progress on the
udev.rules
and i may try to push them to the mandrake kernel package, which will
probably
return more responce :-)
> > also does anyone have links to the patches that add sound support ?
>
> Again, I have patches, but don't think they are ready for prime time.
same as previous comment, but i do listen music all the time :-)
>I want to get these out soon, need to stop answering dumb devfs vs udev
> questions on lkml...
right, why not just upload all the patches you know of or have handy,
to kernel.org/.../hotplug/ and add a big fat note they are experimental
/* may be experimental at what level too, (applies, boots, runs, oopses) */
and add a small coment in the FAQ
this will probably spare you some time answering dumb question
/* and would spare some time google-ing for others too :-) */
> > attached is my udev.rules,
> > which brings me directory structure almost(completely?) equivelent
> > to the devfs one, except that some devices are still missing
> > ( tree /udev = tree-udev.txt, missing entries from /dev = tree-dev.txt
> )
> >
> > 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,
do hard disks/ tapes/... also has such a type file ?
do only scsi ones have it ?
i was thinking of
[address] type="hd" .... name1
[address] type="cd" ....name2
> > and there is a spelling issue either in devfs or -D :-)
> > according to devfs hole disks are named "disc"
> > according to -D they are named "disk"
> > to me the second is more correct, but as it was added just for devfs
> > compatibility it should be probably changed to what devfs use "disc"
>
> Good point, I'll go change that.
wait a bit :-)
it seems that some special devices do use "disk",
while scsi/ide hard's use "disc"
/* devfs has THE naming policy, doesn't it?:) */
I think Arnd is looking into the issue
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
^ permalink raw reply [flat|nested] 42+ messages in thread* Re: udev.rules.devfs + symlinks & a question
2003-12-10 12:01 udev.rules.devfs + symlinks & a question Svetoslav Slavtchev
` (4 preceding siblings ...)
2003-12-10 22:45 ` Svetoslav Slavtchev
@ 2003-12-10 23:14 ` Greg KH
2003-12-10 23:19 ` Svetoslav Slavtchev
` (34 subsequent siblings)
40 siblings, 0 replies; 42+ messages in thread
From: Greg KH @ 2003-12-10 23:14 UTC (permalink / raw)
To: linux-hotplug
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...
thanks,
greg k-h
-------------------------------------------------------
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
^ permalink raw reply [flat|nested] 42+ messages in thread* Re: udev.rules.devfs + symlinks & a question
2003-12-10 12:01 udev.rules.devfs + symlinks & a question Svetoslav Slavtchev
` (5 preceding siblings ...)
2003-12-10 23:14 ` Greg KH
@ 2003-12-10 23:19 ` Svetoslav Slavtchev
2003-12-11 0:17 ` Greg KH
` (33 subsequent siblings)
40 siblings, 0 replies; 42+ messages in thread
From: Svetoslav Slavtchev @ 2003-12-10 23:19 UTC (permalink / raw)
To: linux-hotplug
> 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 ?
:-)
and where are the patches ?
:-)
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
^ permalink raw reply [flat|nested] 42+ messages in thread* Re: udev.rules.devfs + symlinks & a question
2003-12-10 12:01 udev.rules.devfs + symlinks & a question Svetoslav Slavtchev
` (6 preceding siblings ...)
2003-12-10 23:19 ` Svetoslav Slavtchev
@ 2003-12-11 0:17 ` Greg KH
2003-12-11 1:14 ` Svetoslav Slavtchev
` (32 subsequent siblings)
40 siblings, 0 replies; 42+ messages in thread
From: Greg KH @ 2003-12-11 0:17 UTC (permalink / raw)
To: linux-hotplug
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 :)
> and where are the patches ?
Working on getting them together. Need to get some USB fixes to Linus
first, that's more important.
thanks,
greg k-h
-------------------------------------------------------
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
^ permalink raw reply [flat|nested] 42+ messages in thread* Re: udev.rules.devfs + symlinks & a question
2003-12-10 12:01 udev.rules.devfs + symlinks & a question Svetoslav Slavtchev
` (7 preceding siblings ...)
2003-12-11 0:17 ` Greg KH
@ 2003-12-11 1:14 ` Svetoslav Slavtchev
2003-12-11 1:31 ` Svetoslav Slavtchev
` (31 subsequent siblings)
40 siblings, 0 replies; 42+ messages in thread
From: Svetoslav Slavtchev @ 2003-12-11 1:14 UTC (permalink / raw)
To: linux-hotplug
> 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 :)
hm right ;-)
but it's also a feature, which is probably hard to implemet from
userspace
it would be nice to name all devices acoring to their class,
not according to the bus they are conected to, but this is
obviously pretty interesting to implement from userspace
i'm starting to realise what a good consept devfs is/ was
/* not talking from the code quality,
* and i'm not an experianced programmer
*/
> > and where are the patches ?
>
> Working on getting them together. Need to get some USB fixes to Linus
> first, that's more important.
ok, thanks
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
^ permalink raw reply [flat|nested] 42+ messages in thread* Re: udev.rules.devfs + symlinks & a question
2003-12-10 12:01 udev.rules.devfs + symlinks & a question Svetoslav Slavtchev
` (8 preceding siblings ...)
2003-12-11 1:14 ` Svetoslav Slavtchev
@ 2003-12-11 1:31 ` Svetoslav Slavtchev
2003-12-12 22:17 ` Svetoslav Slavtchev
` (30 subsequent siblings)
40 siblings, 0 replies; 42+ messages in thread
From: Svetoslav Slavtchev @ 2003-12-11 1:31 UTC (permalink / raw)
To: linux-hotplug
> 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 :)
on second thought, i think you missunderstood me
i ment that there shouldn't be a else clause
eg
rule1 type=a name=....
rule2 type=b name=...
so if i have devices type a, b, c, unknown
i don't wont devices c & unknown to be named as device type b
if i used
rule1 type=a name=....
rule2 name=.. // catch all type b devices /* and sometimes other */
and i was asking wether all devices export their type
/* in the particular case about ide/scsi hd's */
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
^ permalink raw reply [flat|nested] 42+ messages in thread* Re: udev.rules.devfs + symlinks & a question
2003-12-10 12:01 udev.rules.devfs + symlinks & a question Svetoslav Slavtchev
` (9 preceding siblings ...)
2003-12-11 1:31 ` Svetoslav Slavtchev
@ 2003-12-12 22:17 ` Svetoslav Slavtchev
2003-12-12 23:42 ` Greg KH
` (29 subsequent siblings)
40 siblings, 0 replies; 42+ messages in thread
From: Svetoslav Slavtchev @ 2003-12-12 22:17 UTC (permalink / raw)
To: linux-hotplug
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
^ permalink raw reply [flat|nested] 42+ messages in thread* Re: udev.rules.devfs + symlinks & a question
2003-12-10 12:01 udev.rules.devfs + symlinks & a question Svetoslav Slavtchev
` (10 preceding siblings ...)
2003-12-12 22:17 ` Svetoslav Slavtchev
@ 2003-12-12 23:42 ` Greg KH
2003-12-12 23:43 ` Greg KH
` (28 subsequent siblings)
40 siblings, 0 replies; 42+ messages in thread
From: Greg KH @ 2003-12-12 23:42 UTC (permalink / raw)
To: linux-hotplug
On Thu, Dec 11, 2003 at 02:14:49AM +0100, Svetoslav Slavtchev wrote:
>
> it would be nice to name all devices acoring to their class,
> not according to the bus they are conected to, but this is
> obviously pretty interesting to implement from userspace
That wouldn't be that hard, but remember, all block devices are of class
"block", which is what I don't think you want :)
greg k-h
-------------------------------------------------------
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
^ permalink raw reply [flat|nested] 42+ messages in thread* Re: udev.rules.devfs + symlinks & a question
2003-12-10 12:01 udev.rules.devfs + symlinks & a question Svetoslav Slavtchev
` (11 preceding siblings ...)
2003-12-12 23:42 ` Greg KH
@ 2003-12-12 23:43 ` Greg KH
2003-12-12 23:45 ` Greg KH
` (27 subsequent siblings)
40 siblings, 0 replies; 42+ messages in thread
From: Greg KH @ 2003-12-12 23:43 UTC (permalink / raw)
To: linux-hotplug
On Thu, Dec 11, 2003 at 02:31:34AM +0100, Svetoslav Slavtchev wrote:
> on second thought, i think you missunderstood me
I don't really understand your example. Can you give me a real example
using udev rules?
thanks,
greg k-h
-------------------------------------------------------
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
^ permalink raw reply [flat|nested] 42+ messages in thread* Re: udev.rules.devfs + symlinks & a question
2003-12-10 12:01 udev.rules.devfs + symlinks & a question Svetoslav Slavtchev
` (12 preceding siblings ...)
2003-12-12 23:43 ` Greg KH
@ 2003-12-12 23:45 ` Greg KH
2003-12-13 0:02 ` Svetoslav Slavtchev
` (26 subsequent siblings)
40 siblings, 0 replies; 42+ messages in thread
From: Greg KH @ 2003-12-12 23:45 UTC (permalink / raw)
To: linux-hotplug
On Fri, Dec 12, 2003 at 11:17:02PM +0100, Svetoslav Slavtchev wrote:
>
> again repling to myself :-)
> it looks like scsi exports all the needed information,
> but i run ide and it doesn't export it :(
Yes, ide needs kernel changes.
> > > 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 ?-)
Nope, I had a bunch more, they just went out...
> 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 don't understand.
> i couldn't find anything regarding raw
> devices in the usb-2.5 tree :(
That's because it's in my inbox :)
It's also under active development by the patch author, so I'll hold off
on it for a while untill they are happy with it.
thanks,
greg k-h
-------------------------------------------------------
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
^ permalink raw reply [flat|nested] 42+ messages in thread* Re: udev.rules.devfs + symlinks & a question
2003-12-10 12:01 udev.rules.devfs + symlinks & a question Svetoslav Slavtchev
` (13 preceding siblings ...)
2003-12-12 23:45 ` Greg KH
@ 2003-12-13 0:02 ` Svetoslav Slavtchev
2003-12-13 0:06 ` Greg KH
` (25 subsequent siblings)
40 siblings, 0 replies; 42+ messages in thread
From: Svetoslav Slavtchev @ 2003-12-13 0:02 UTC (permalink / raw)
To: linux-hotplug
> On Thu, Dec 11, 2003 at 02:14:49AM +0100, Svetoslav Slavtchev wrote:
> >
> > it would be nice to name all devices acoring to their class,
> > not according to the bus they are conected to, but this is
> > obviously pretty interesting to implement from userspace
>
> That wouldn't be that hard, but remember, all block devices are of class
> "block", which is what I don't think you want :)
right,
i ment "type"
but except scsi i get only this :
[svetljo@svetljo tmp]$ find /sys -name "type"
/sys/class/net/sit0/type
/sys/class/net/eth2/type
/sys/class/net/eth1/type
/sys/class/net/eth0/type
/sys/class/net/lo/type
:(
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
^ permalink raw reply [flat|nested] 42+ messages in thread* Re: udev.rules.devfs + symlinks & a question
2003-12-10 12:01 udev.rules.devfs + symlinks & a question Svetoslav Slavtchev
` (14 preceding siblings ...)
2003-12-13 0:02 ` Svetoslav Slavtchev
@ 2003-12-13 0:06 ` Greg KH
2003-12-13 0:39 ` Svetoslav Slavtchev
` (24 subsequent siblings)
40 siblings, 0 replies; 42+ messages in thread
From: Greg KH @ 2003-12-13 0:06 UTC (permalink / raw)
To: linux-hotplug
On Sat, Dec 13, 2003 at 01:02:51AM +0100, Svetoslav Slavtchev wrote:
> > On Thu, Dec 11, 2003 at 02:14:49AM +0100, Svetoslav Slavtchev wrote:
> > >
> > > it would be nice to name all devices acoring to their class,
> > > not according to the bus they are conected to, but this is
> > > obviously pretty interesting to implement from userspace
> >
> > That wouldn't be that hard, but remember, all block devices are of class
> > "block", which is what I don't think you want :)
>
> right,
> i ment "type"
>
> but except scsi i get only this :
>
> [svetljo@svetljo tmp]$ find /sys -name "type"
> /sys/class/net/sit0/type
> /sys/class/net/eth2/type
> /sys/class/net/eth1/type
> /sys/class/net/eth0/type
> /sys/class/net/lo/type
But what do you mean by "type"? That's what all of the different
subdirectories in /sys/class are for. Showing you that those are all
devices of different types, grouped together. Block is the only one not
located in this place (historical reasons, combined with some
limitations in the driver class code, will be fixed in 2.7)
thanks,
greg k-h
-------------------------------------------------------
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
^ permalink raw reply [flat|nested] 42+ messages in thread* Re: udev.rules.devfs + symlinks & a question
2003-12-10 12:01 udev.rules.devfs + symlinks & a question Svetoslav Slavtchev
` (15 preceding siblings ...)
2003-12-13 0:06 ` Greg KH
@ 2003-12-13 0:39 ` Svetoslav Slavtchev
2003-12-13 0:57 ` Greg KH
` (23 subsequent siblings)
40 siblings, 0 replies; 42+ messages in thread
From: Svetoslav Slavtchev @ 2003-12-13 0:39 UTC (permalink / raw)
To: linux-hotplug
> On Thu, Dec 11, 2003 at 02:31:34AM +0100, Svetoslav Slavtchev wrote:
> > on second thought, i think you missunderstood me
>
> I don't really understand your example. Can you give me a real example
> using udev rules?
>
NUMBER, BUS="ide", id="0.0", type="disk" \
NAME="ide/host0/bus0/target0/lun0/%D", SYMLINK="hda%n"
NUMBER, BUS="ide", id="0.1", type="disk" \
NAME="ide/host0/bus0/target1/lun0/%D", SYMLINK="hdb%n"
NUMBER, BUS="ide", id="1.0", type="disk" \
NAME="ide/host0/bus1/target0/lun0/%D", SYMLINK="hdc%n"
NUMBER, BUS="ide", id="1.1", type="disk" \
NAME="ide/host0/bus1/target1/lun0/%D", SYMLINK="hdd%n"
NUMBER, BUS="ide", id="0.0", type="cd" \
NAME="ide/host0/bus0/target0/lun0/cd", SYMLINK="hda"
NUMBER, BUS="ide", id="0.1", type="cd" \
NAME="ide/host0/bus0/target1/lun0/cd", SYMLINK="hdb"
NUMBER, BUS="ide", id="1.0", type="cd" \
NAME="ide/host0/bus1/target0/lun0/cd", SYMLINK="hdc"
NUMBER, BUS="ide", id="1.1", type="cd" \
NAME="ide/host0/bus1/target1/lun0/cd", SYMLINK="hdd"
i think this should theoretically work if ide exported the needed
information,
and may be it works now on scsi, but there is one small issue
there is no way to export smth similar to devfs
smth like we have to variables
int cd=0, disk=0
and use for the symlink rules :
NUMBER, BUS="ide", id="0.0", type="disk" \
NAME="ide/host0/bus0/target0/lun0/%D", \
SYMLINK="hda%n discs/disc%disc++"
NUMBER, BUS="ide", id="0.1", type="disk" \
NAME="ide/host0/bus0/target1/lun0/%D", \
SYMLINK="hdb%n discs/disc%disc++"
NUMBER, BUS="ide", id="1.0", type="disk" \
NAME="ide/host0/bus1/target0/lun0/%D", \
SYMLINK="hdc%n discs/disc%disc++"
NUMBER, BUS="ide", id="1.1", type="disk" \
NAME="ide/host0/bus1/target1/lun0/%D", \
SYMLINK="hdd%n discs/disc%disc++"
NUMBER, BUS="ide", id="0.0", type="cd" \
NAME="ide/host0/bus0/target0/lun0/cd", \
SYMLINK="hda cdrom%cd++"
NUMBER, BUS="ide", id="0.1", type="cd" \
NAME="ide/host0/bus0/target1/lun0/cd", \
SYMLINK="hdb cdrom%cd++"
NUMBER, BUS="ide", id="1.0", type="cd" \
NAME="ide/host0/bus1/target0/lun0/cd", \
SYMLINK="hdc cdrom%cd++"
NUMBER, BUS="ide", id="1.1", type="cd" \
NAME="ide/host0/bus1/target1/lun0/cd", \
SYMLINK="hdd cdrom%cd++"
so this should create the standard devfs files (NAME)
and symlinks named acording to the order of
registering/ finding the devices
:( i think i'm getting confused from my explanations :(
i'm getting really confused :(
may be a better idea would be to use the REPLACE
i've for alsa
REPLACE, KERNEL="admmidi", NAME="sound/admmidi", SYMLINK="admmidi"
REPLACE, KERNEL="admmidi[1-9]", NAME="sound/admmidi%n", SYMLINK="admmidi%n"
and a devfs like implementation for cd's would be
REPLACE, KERNEL="cdrom", NAME="%D", SYMLINK="cdroms/cdrom cdrom"
REPLACE, KERNEL="cdrom[1-9]*", NAME="%D", SYMLINK="cdroms/cdrom&n cdrom%n"
where %D should construct the full name like in
NAME="ide/host0/bus1/target0/lun0/cd
according to id="x:x"
forget it, i think i just confused you more :(
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
^ permalink raw reply [flat|nested] 42+ messages in thread* Re: udev.rules.devfs + symlinks & a question
2003-12-10 12:01 udev.rules.devfs + symlinks & a question Svetoslav Slavtchev
` (16 preceding siblings ...)
2003-12-13 0:39 ` Svetoslav Slavtchev
@ 2003-12-13 0:57 ` Greg KH
2003-12-13 0:58 ` Svetoslav Slavtchev
` (22 subsequent siblings)
40 siblings, 0 replies; 42+ messages in thread
From: Greg KH @ 2003-12-13 0:57 UTC (permalink / raw)
To: linux-hotplug
<lots of rules snipped>
> forget it, i think i just confused you more :(
Heh, I think if you really want to do this complex of stuff, use the
CALLOUT rule to do it yourself, outside of udev :)
thanks,
greg k-h
-------------------------------------------------------
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
^ permalink raw reply [flat|nested] 42+ messages in thread* Re: udev.rules.devfs + symlinks & a question
2003-12-10 12:01 udev.rules.devfs + symlinks & a question Svetoslav Slavtchev
` (17 preceding siblings ...)
2003-12-13 0:57 ` Greg KH
@ 2003-12-13 0:58 ` Svetoslav Slavtchev
2003-12-13 1:17 ` Svetoslav Slavtchev
` (21 subsequent siblings)
40 siblings, 0 replies; 42+ messages in thread
From: Svetoslav Slavtchev @ 2003-12-13 0:58 UTC (permalink / raw)
To: linux-hotplug
> On Fri, Dec 12, 2003 at 11:17:02PM +0100, Svetoslav Slavtchev wrote:
> >
> > again repling to myself :-)
> > it looks like scsi exports all the needed information,
> > but i run ide and it doesn't export it :(
>
> Yes, ide needs kernel changes.
>
> > > > 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 ?-)
>
> Nope, I had a bunch more, they just went out...
the rollup one :-), recompiling a kernel again
> > 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 don't understand.
REPLACE, KERNEL="controlC?", NAME="snd/controlC%1"
REPLACE, KERNEL="hwC?D?", NAME="snd/hwC%1D%2c"
REPLACE, KERNEL="midiC?D?", NAME="snd/midiC%1D%2"
REPLACE, KERNEL="pcmC?D?c", NAME="snd/pcmC%1D%2c"
REPLACE, KERNEL="pcmC?D?p", NAME="snd/pcmC%1D%2p"
is this possible ?
> > i couldn't find anything regarding raw
> > devices in the usb-2.5 tree :(
>
> That's because it's in my inbox :)
> It's also under active development by the patch author, so I'll hold off
> on it for a while untill they are happy with it.
:-)
could you foward it to me ?
i really want at least to make the udev.rules.devfs more complete
/* which reminds me to ask a question */
does udev use both udev.rules and udev.rules.devfs
it would be really great if one could enable devfs like name in udev.conf
and then udev checks udev.rules for user defined rules,
and additionally chains them to the devfs one's in udev.rules.devfs
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
^ permalink raw reply [flat|nested] 42+ messages in thread* Re: udev.rules.devfs + symlinks & a question
2003-12-10 12:01 udev.rules.devfs + symlinks & a question Svetoslav Slavtchev
` (18 preceding siblings ...)
2003-12-13 0:58 ` Svetoslav Slavtchev
@ 2003-12-13 1:17 ` Svetoslav Slavtchev
2003-12-13 15:47 ` Kay Sievers
` (20 subsequent siblings)
40 siblings, 0 replies; 42+ messages in thread
From: Svetoslav Slavtchev @ 2003-12-13 1:17 UTC (permalink / raw)
To: linux-hotplug
> <lots of rules snipped>
>
> > forget it, i think i just confused you more :(
>
> Heh, I think if you really want to do this complex of stuff, use the
> CALLOUT rule to do it yourself, outside of udev :)
can a callout return several strings?
NAME="%c1", SYMLINK="%c2 %c3"
no i don't think this can be done with a callout script
i think the way to go would be
REPLACE, KERNEL="cdrom", NAME="%D", SYMLINK="cdroms/cdrom cdrom"
REPLACE, KERNEL="cdrom[1-9]*", NAME="%D", SYMLINK="cdroms/cdrom%n cdrom%n"
but this will require some bigger udev changes i assume,
and will be a lot of work
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
^ permalink raw reply [flat|nested] 42+ messages in thread* Re: udev.rules.devfs + symlinks & a question
2003-12-10 12:01 udev.rules.devfs + symlinks & a question Svetoslav Slavtchev
` (19 preceding siblings ...)
2003-12-13 1:17 ` Svetoslav Slavtchev
@ 2003-12-13 15:47 ` Kay Sievers
2003-12-13 21:33 ` Svetoslav Slavtchev
` (19 subsequent siblings)
40 siblings, 0 replies; 42+ messages in thread
From: Kay Sievers @ 2003-12-13 15:47 UTC (permalink / raw)
To: linux-hotplug
[-- Attachment #1: Type: text/plain, Size: 995 bytes --]
On Sat, Dec 13, 2003 at 02:17:22AM +0100, Svetoslav Slavtchev wrote:
> can a callout return several strings?
> NAME="%c1", SYMLINK="%c2 %c3"
>
> no i don't think this can be done with a callout script
Try this patch if you like, to get special parts of the callout output.
This beast works now:
CALLOUT, BUS="scsi", PROGRAM="/bin/echo -n node link1 link2", ID="node *", NAME="%1c", SYMLINK="%2c %3c"
The callout returned string is separated by spaces and is
addressed by the "len" value of the 'c' format char.
Since we support symlinks, this my be useful for other uses of callout too.
good luck,
Kay
02-get-part-of-callout-return-string.diff
introduce 'len number' for format chars
the first use is 'c'-the callout return to select a part of the output string like:
CALLOUT, BUS="scsi", PROGRAM="/bin/echo -n node link1 link2", ID="node *", NAME="%1c", SYMLINK="%2c %3c"
(note: first part is requested by len=1, len=0 will return the whole string)
add a test to udev-test.pl
[-- Attachment #2: 02-get-part-of-callout-return-string.diff --]
[-- Type: text/plain, Size: 2168 bytes --]
diff -Nru a/namedev.c b/namedev.c
--- a/namedev.c Sat Dec 13 16:19:27 2003
+++ b/namedev.c Sat Dec 13 16:19:27 2003
@@ -200,15 +200,30 @@
static void apply_format(struct udevice *udev, unsigned char *string)
{
char name[NAME_SIZE];
+ char temp[NAME_SIZE];
+ char *tail;
char *pos;
+ char *pos2;
+ char *pos3;
+ int num;
while (1) {
+ num = 0;
pos = strchr(string, '%');
if (pos) {
- strfieldcpy(name, pos+2);
- *pos = 0x00;
- switch (pos[1]) {
+ *pos = '\0';
+ tail = pos+1;
+ if (isdigit(tail[0])) {
+ num = (int) strtoul(&pos[1], &tail, 10);
+ if (tail == NULL) {
+ dbg("format parsing error '%s'", pos+1);
+ break;
+ }
+ }
+ strfieldcpy(name, tail+1);
+
+ switch (tail[0]) {
case 'b':
if (strlen(udev->bus_id) == 0)
break;
@@ -241,8 +256,24 @@
case 'c':
if (strlen(udev->callout_value) == 0)
break;
- strcat(pos, udev->callout_value);
- dbg("substitute callout output '%s'", udev->callout_value);
+ if (num) {
+ /* get part of return string */
+ strncpy(temp, udev->callout_value, sizeof(temp));
+ pos2 = temp;
+ while (num) {
+ num--;
+ pos3 = strsep(&pos2, " ");
+ if (pos3 == NULL) {
+ dbg("requested part of callout string not found");
+ break;
+ }
+ }
+ strcat(pos, pos3);
+ dbg("substitute partial callout output '%s'", pos3);
+ } else {
+ strcat(pos, udev->callout_value);
+ dbg("substitute callout output '%s'", udev->callout_value);
+ }
break;
default:
dbg("unknown substitution type '%%%c'", pos[1]);
diff -Nru a/test/udev-test.pl b/test/udev-test.pl
--- a/test/udev-test.pl Sat Dec 13 16:19:27 2003
+++ b/test/udev-test.pl Sat Dec 13 16:19:27 2003
@@ -153,6 +153,15 @@
EOF
},
{
+ desc => "callout program substitution (numbered part of)",
+ subsys => "block",
+ devpath => "block/sda/sda3",
+ expected => "link1" ,
+ conf => <<EOF
+CALLOUT, BUS="scsi", PROGRAM="/bin/echo -n node link1 link2", ID="node *", NAME="%1c", SYMLINK="%2c %3c"
+EOF
+ },
+ {
desc => "devfs disk naming substitution",
subsys => "block",
devpath => "block/sda",
^ permalink raw reply [flat|nested] 42+ messages in thread* Re: udev.rules.devfs + symlinks & a question
2003-12-10 12:01 udev.rules.devfs + symlinks & a question Svetoslav Slavtchev
` (20 preceding siblings ...)
2003-12-13 15:47 ` Kay Sievers
@ 2003-12-13 21:33 ` Svetoslav Slavtchev
2003-12-14 3:34 ` Kay Sievers
` (18 subsequent siblings)
40 siblings, 0 replies; 42+ messages in thread
From: Svetoslav Slavtchev @ 2003-12-13 21:33 UTC (permalink / raw)
To: linux-hotplug
Hi,
> On Sat, Dec 13, 2003 at 02:17:22AM +0100, Svetoslav Slavtchev wrote:
>
> > can a callout return several strings?
> > NAME="%c1", SYMLINK="%c2 %c3"
> >
> > no i don't think this can be done with a callout script
>
> Try this patch if you like, to get special parts of the callout output.
> This beast works now:
> CALLOUT, BUS="scsi", PROGRAM="/bin/echo -n node link1 link2", ID="node *",
> NAME="%1c", SYMLINK="%2c %3c"
>
> The callout returned string is separated by spaces and is
> addressed by the "len" value of the 'c' format char.
> Since we support symlinks, this my be useful for other uses of callout
> too.
>
> good luck,
> Kay
thanks a lot,
where could i find samples for callout scripts ?
what information is available to the callout environment
with other words how should i construct one :-)
best,
svetljo
PS.
current udev -bk is not rpm friendly
the generation of udev.conf uses
a sed rule which conflicts with the
defaut rpm path for installing the binaries
smth like $tmp/$name-$version-$release
^ ^
so this "-" break the "s-path-$udev_dir-" sed rule
using ":" for delimiter fixes it
also
make DESTDIR=.... EXTRAS=/extras/scsi_id install
tryes to install scsi_id in "/sbin" not in DESTDIR
PS.2
i also made rpms from today's bk
http://varna.demon.co.uk/~svetlio/cook/2.6/udev/
which reminds me to ask smth :-)
what are the advantages/ disadvantages
to compile using klibc ?
>
>
> 02-get-part-of-callout-return-string.diff
> introduce 'len number' for format chars
> the first use is 'c'-the callout return to select a part of the output
> string like:
> CALLOUT, BUS="scsi", PROGRAM="/bin/echo -n node link1 link2", ID="node
> *", NAME="%1c", SYMLINK="%2c %3c"
> (note: first part is requested by len=1, len=0 will return the whole
> string)
> add a test to udev-test.pl
>
--
+++ 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
^ permalink raw reply [flat|nested] 42+ messages in thread* Re: udev.rules.devfs + symlinks & a question
2003-12-10 12:01 udev.rules.devfs + symlinks & a question Svetoslav Slavtchev
` (21 preceding siblings ...)
2003-12-13 21:33 ` Svetoslav Slavtchev
@ 2003-12-14 3:34 ` Kay Sievers
2003-12-15 22:55 ` Greg KH
` (17 subsequent siblings)
40 siblings, 0 replies; 42+ messages in thread
From: Kay Sievers @ 2003-12-14 3:34 UTC (permalink / raw)
To: linux-hotplug
On Sat, Dec 13, 2003 at 10:33:08PM +0100, Svetoslav Slavtchev wrote:
> where could i find samples for callout scripts ?
> what information is available to the callout environment
this is the rule:
CALLOUT, BUS="usb", PROGRAM="/tmp/x this is the bus %b", ID="*", NAME="%1c", SYMLINK="%2c"
this is the callout script:
#!/bin/sh
echo $* >> /tmp/callout-args
set >/tmp/callout-env
echo -n "aaa bbb"
it creates:
/udev/
|-- aaa
`-- bbb -> ./aaa
callout-args file made by the script contains:
this is the bus 1-1.1
callout-env file made by the script contains something like this:
ACTIONd
DEVPATH=/class/video4linux/video0
EUID=0
GROUPS=()
HOME=/
PATH=/sbin:/bin:/usr/sbin:/usr/bin
PPID\x18479
PWD=/
SEQNUM90
SHELL=/bin/bash
SHELLOPTS=braceexpand:hashall:interactive-comments:posix
UID=0
thanks,
Kay
-------------------------------------------------------
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
^ permalink raw reply [flat|nested] 42+ messages in thread* Re: udev.rules.devfs + symlinks & a question
2003-12-10 12:01 udev.rules.devfs + symlinks & a question Svetoslav Slavtchev
` (22 preceding siblings ...)
2003-12-14 3:34 ` Kay Sievers
@ 2003-12-15 22:55 ` Greg KH
2003-12-15 22:56 ` Greg KH
` (16 subsequent siblings)
40 siblings, 0 replies; 42+ messages in thread
From: Greg KH @ 2003-12-15 22:55 UTC (permalink / raw)
To: linux-hotplug
On Sat, Dec 13, 2003 at 04:47:48PM +0100, Kay Sievers wrote:
> 02-get-part-of-callout-return-string.diff
> introduce 'len number' for format chars
> the first use is 'c'-the callout return to select a part of the output string like:
> CALLOUT, BUS="scsi", PROGRAM="/bin/echo -n node link1 link2", ID="node *", NAME="%1c", SYMLINK="%2c %3c"
> (note: first part is requested by len=1, len=0 will return the whole string)
> add a test to udev-test.pl
Nice, I've applied this.
thanks,
greg k-h
-------------------------------------------------------
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
^ permalink raw reply [flat|nested] 42+ messages in thread* Re: udev.rules.devfs + symlinks & a question
2003-12-10 12:01 udev.rules.devfs + symlinks & a question Svetoslav Slavtchev
` (23 preceding siblings ...)
2003-12-15 22:55 ` Greg KH
@ 2003-12-15 22:56 ` Greg KH
2003-12-15 22:57 ` Greg KH
` (15 subsequent siblings)
40 siblings, 0 replies; 42+ messages in thread
From: Greg KH @ 2003-12-15 22:56 UTC (permalink / raw)
To: linux-hotplug
On Sat, Dec 13, 2003 at 01:58:20AM +0100, Svetoslav Slavtchev wrote:
> i really want at least to make the udev.rules.devfs more complete
> /* which reminds me to ask a question */
> does udev use both udev.rules and udev.rules.devfs
Nope.
> it would be really great if one could enable devfs like name in udev.conf
> and then udev checks udev.rules for user defined rules,
What user? How does the kernel know what user a device is for? :)
> and additionally chains them to the devfs one's in udev.rules.devfs
Nah, if you want a devfs like udev config, you will have to specify it.
Remember you are not the "normal" user of udev by any means.
thanks,
greg k-h
-------------------------------------------------------
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
^ permalink raw reply [flat|nested] 42+ messages in thread* Re: udev.rules.devfs + symlinks & a question
2003-12-10 12:01 udev.rules.devfs + symlinks & a question Svetoslav Slavtchev
` (24 preceding siblings ...)
2003-12-15 22:56 ` Greg KH
@ 2003-12-15 22:57 ` Greg KH
2003-12-17 20:16 ` Svetoslav Slavtchev
` (14 subsequent siblings)
40 siblings, 0 replies; 42+ messages in thread
From: Greg KH @ 2003-12-15 22:57 UTC (permalink / raw)
To: linux-hotplug
On Sat, Dec 13, 2003 at 10:33:08PM +0100, Svetoslav Slavtchev wrote:
> what are the advantages/ disadvantages
> to compile using klibc ?
A very tiny static executable is created using klibc. That's necessary
for early boot, and people who care about the size of things.
thanks,
greg k-h
-------------------------------------------------------
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
^ permalink raw reply [flat|nested] 42+ messages in thread* Re: udev.rules.devfs + symlinks & a question
2003-12-10 12:01 udev.rules.devfs + symlinks & a question Svetoslav Slavtchev
` (25 preceding siblings ...)
2003-12-15 22:57 ` Greg KH
@ 2003-12-17 20:16 ` Svetoslav Slavtchev
2003-12-17 20:39 ` Svetoslav Slavtchev
` (13 subsequent siblings)
40 siblings, 0 replies; 42+ messages in thread
From: Svetoslav Slavtchev @ 2003-12-17 20:16 UTC (permalink / raw)
To: linux-hotplug
> On Sat, Dec 13, 2003 at 01:58:20AM +0100, Svetoslav Slavtchev wrote:
>
> > i really want at least to make the udev.rules.devfs more complete
> > /* which reminds me to ask a question */
> > does udev use both udev.rules and udev.rules.devfs
>
> Nope.
>
> > it would be really great if one could enable devfs like name in
> udev.conf
> > and then udev checks udev.rules for user defined rules,
>
> What user? How does the kernel know what user a device is for? :)
>
> > and additionally chains them to the devfs one's in udev.rules.devfs
>
> Nah, if you want a devfs like udev config, you will have to specify it.
> Remember you are not the "normal" user of udev by any means.
>
let's put it this way:
i'm tring to figure out a way to replace devfs by udev
in mandrake linux
it's next version will ship with both 2.4 & 2.6 kernel,
and mandrake has used devfs since it switched to the 2.4 kernel
so devfs compatibility is quite needed
if we use a single configuration file for creating devfs compatible devices
and for user defined rules IMHO it's getting a bit messy
so i think it would be good to use two separate files
one just for user defined rules - e.g. BUS="usb" type="cdrom"
NAME="usb-cdrw"
and one for devfs compatibilty
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
^ permalink raw reply [flat|nested] 42+ messages in thread* Re: udev.rules.devfs + symlinks & a question
2003-12-10 12:01 udev.rules.devfs + symlinks & a question Svetoslav Slavtchev
` (26 preceding siblings ...)
2003-12-17 20:16 ` Svetoslav Slavtchev
@ 2003-12-17 20:39 ` Svetoslav Slavtchev
2003-12-17 21:13 ` Svetoslav Slavtchev
` (12 subsequent siblings)
40 siblings, 0 replies; 42+ messages in thread
From: Svetoslav Slavtchev @ 2003-12-17 20:39 UTC (permalink / raw)
To: linux-hotplug
> On Sat, Dec 13, 2003 at 10:33:08PM +0100, Svetoslav Slavtchev wrote:
> > what are the advantages/ disadvantages
> > to compile using klibc ?
>
> A very tiny static executable is created using klibc. That's necessary
> for early boot, and people who care about the size of things.
>
thanks for the explanation :-)
could you drop the link to linux source (IIRC ../../gregkh-2.5 )
in udev/klibc, and replace it with
make KERNEL_DIR=...... USE_KLIBC=true
i've a small patch but it's only for udev,
and it doesn't work with " make USE_KLIBC=true EXTRAS=..."
it's mostly
s:$(LINUX_INCLUDE_DIR)/kernel/include:$(KERNEL_DIR)/include:
in udev/Makefile & udev/klibc/MCONFIG
and i have a small issue with klibc compiled udev,
at least bk from a 1-2 days ago
most devicefs alike rules are followed, but not all
e.g the rule for loop devices is ignored by dev compailed against
klibc, but is followed by udev compiled against libc
there are two more small issues/ questions
could you change the sed rule for generating udev.conf
to use ":" instead "-" for separater, as it's getting confused
if you install to RPM_BUILD_ROOT/udev-$(version)/
^^^
and the question
how should i compile udev to use shared libraries,
not to link it staticaly? static udev using libc is arround 500k,
so it's a way too big for initrd,
why not have a klibc udev static binary for initrd,
and a not static one against libc to manage the devices,
after root is mounted and the libraries are available
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
^ permalink raw reply [flat|nested] 42+ messages in thread* Re: udev.rules.devfs + symlinks & a question
2003-12-10 12:01 udev.rules.devfs + symlinks & a question Svetoslav Slavtchev
` (27 preceding siblings ...)
2003-12-17 20:39 ` Svetoslav Slavtchev
@ 2003-12-17 21:13 ` Svetoslav Slavtchev
2003-12-17 22:24 ` Greg KH
` (11 subsequent siblings)
40 siblings, 0 replies; 42+ messages in thread
From: Svetoslav Slavtchev @ 2003-12-17 21:13 UTC (permalink / raw)
To: linux-hotplug
> On Sat, Dec 13, 2003 at 10:33:08PM +0100, Svetoslav Slavtchev wrote:
> > what are the advantages/ disadvantages
> > to compile using klibc ?
>
> A very tiny static executable is created using klibc. That's necessary
> for early boot, and people who care about the size of things.
>
hm
one more note
udev.permissions seems to be tottaly ignored by udev
compiled against klibc ?
all devices are owned by root:root,
with libc udev i do have root:video, root:audio, ....
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
^ permalink raw reply [flat|nested] 42+ messages in thread* Re: udev.rules.devfs + symlinks & a question
2003-12-10 12:01 udev.rules.devfs + symlinks & a question Svetoslav Slavtchev
` (28 preceding siblings ...)
2003-12-17 21:13 ` Svetoslav Slavtchev
@ 2003-12-17 22:24 ` Greg KH
2003-12-17 22:25 ` Greg KH
` (10 subsequent siblings)
40 siblings, 0 replies; 42+ messages in thread
From: Greg KH @ 2003-12-17 22:24 UTC (permalink / raw)
To: linux-hotplug
On Wed, Dec 17, 2003 at 09:39:08PM +0100, Svetoslav Slavtchev wrote:
> > On Sat, Dec 13, 2003 at 10:33:08PM +0100, Svetoslav Slavtchev wrote:
> > > what are the advantages/ disadvantages
> > > to compile using klibc ?
> >
> > A very tiny static executable is created using klibc. That's necessary
> > for early boot, and people who care about the size of things.
> >
>
> thanks for the explanation :-)
>
> could you drop the link to linux source (IIRC ../../gregkh-2.5 )
> in udev/klibc, and replace it with
> make KERNEL_DIR=...... USE_KLIBC=true
Hm, the udev/linux symlink points to:
linux -> ../../../linux/linux-2.5
If you want to build with klibc, adjust it to where your 2.6 kernel tree
is located at.
> i've a small patch but it's only for udev,
> and it doesn't work with " make USE_KLIBC=true EXTRAS=..."
> it's mostly
> s:$(LINUX_INCLUDE_DIR)/kernel/include:$(KERNEL_DIR)/include:
> in udev/Makefile & udev/klibc/MCONFIG
Care to send it?
thanks,
greg k-h
-------------------------------------------------------
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
^ permalink raw reply [flat|nested] 42+ messages in thread* Re: udev.rules.devfs + symlinks & a question
2003-12-10 12:01 udev.rules.devfs + symlinks & a question Svetoslav Slavtchev
` (29 preceding siblings ...)
2003-12-17 22:24 ` Greg KH
@ 2003-12-17 22:25 ` Greg KH
2003-12-17 22:27 ` Greg KH
` (9 subsequent siblings)
40 siblings, 0 replies; 42+ messages in thread
From: Greg KH @ 2003-12-17 22:25 UTC (permalink / raw)
To: linux-hotplug
On Wed, Dec 17, 2003 at 09:39:08PM +0100, Svetoslav Slavtchev wrote:
> and i have a small issue with klibc compiled udev,
> at least bk from a 1-2 days ago
> most devicefs alike rules are followed, but not all
> e.g the rule for loop devices is ignored by dev compailed against
> klibc, but is followed by udev compiled against libc
See the man page for why this is:
If udev was built using klibc or is used before the user
database is accessible (e.g. initrd(4)), only numeric owner and
group values may be used.
thanks,
greg k-h
-------------------------------------------------------
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
^ permalink raw reply [flat|nested] 42+ messages in thread* Re: udev.rules.devfs + symlinks & a question
2003-12-10 12:01 udev.rules.devfs + symlinks & a question Svetoslav Slavtchev
` (30 preceding siblings ...)
2003-12-17 22:25 ` Greg KH
@ 2003-12-17 22:27 ` Greg KH
2003-12-17 22:28 ` Greg KH
` (8 subsequent siblings)
40 siblings, 0 replies; 42+ messages in thread
From: Greg KH @ 2003-12-17 22:27 UTC (permalink / raw)
To: linux-hotplug
On Wed, Dec 17, 2003 at 09:39:08PM +0100, Svetoslav Slavtchev wrote:
>
> could you change the sed rule for generating udev.conf
> to use ":" instead "-" for separater, as it's getting confused
> if you install to RPM_BUILD_ROOT/udev-$(version)/
What do you mean? The sed rule:
sed -e "s-@udevdir@-$(udevdir)-" < udev.conf.in > $@
doesn't work for you? If not, patches to fix it are appreciated.
> and the question
> how should i compile udev to use shared libraries,
> not to link it staticaly? static udev using libc is arround 500k,
> so it's a way too big for initrd,
> why not have a klibc udev static binary for initrd,
> and a not static one against libc to manage the devices,
> after root is mounted and the libraries are available
Ok, changes to the Makefile to make the glibc build dynamic are welcome.
thanks,
greg k-h
-------------------------------------------------------
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
^ permalink raw reply [flat|nested] 42+ messages in thread* Re: udev.rules.devfs + symlinks & a question
2003-12-10 12:01 udev.rules.devfs + symlinks & a question Svetoslav Slavtchev
` (31 preceding siblings ...)
2003-12-17 22:27 ` Greg KH
@ 2003-12-17 22:28 ` Greg KH
2003-12-17 22:29 ` Greg KH
` (7 subsequent siblings)
40 siblings, 0 replies; 42+ messages in thread
From: Greg KH @ 2003-12-17 22:28 UTC (permalink / raw)
To: linux-hotplug
On Wed, Dec 17, 2003 at 10:13:27PM +0100, Svetoslav Slavtchev wrote:
> > On Sat, Dec 13, 2003 at 10:33:08PM +0100, Svetoslav Slavtchev wrote:
> > > what are the advantages/ disadvantages
> > > to compile using klibc ?
> >
> > A very tiny static executable is created using klibc. That's necessary
> > for early boot, and people who care about the size of things.
> >
>
> hm
> one more note
>
> udev.permissions seems to be tottaly ignored by udev
> compiled against klibc ?
> all devices are owned by root:root,
> with libc udev i do have root:video, root:audio, ....
See the man page for why:
If udev was built using klibc or is used before the user
database is accessible (e.g. initrd(4)), only numeric owner and
group values may be used.
greg k-h
-------------------------------------------------------
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
^ permalink raw reply [flat|nested] 42+ messages in thread* Re: udev.rules.devfs + symlinks & a question
2003-12-10 12:01 udev.rules.devfs + symlinks & a question Svetoslav Slavtchev
` (32 preceding siblings ...)
2003-12-17 22:28 ` Greg KH
@ 2003-12-17 22:29 ` Greg KH
2003-12-17 22:30 ` Greg KH
` (6 subsequent siblings)
40 siblings, 0 replies; 42+ messages in thread
From: Greg KH @ 2003-12-17 22:29 UTC (permalink / raw)
To: linux-hotplug
On Wed, Dec 17, 2003 at 02:25:22PM -0800, Greg KH wrote:
> On Wed, Dec 17, 2003 at 09:39:08PM +0100, Svetoslav Slavtchev wrote:
> > and i have a small issue with klibc compiled udev,
> > at least bk from a 1-2 days ago
> > most devicefs alike rules are followed, but not all
> > e.g the rule for loop devices is ignored by dev compailed against
> > klibc, but is followed by udev compiled against libc
>
> See the man page for why this is:
> If udev was built using klibc or is used before the user
> database is accessible (e.g. initrd(4)), only numeric owner and
> group values may be used.
bah, wrong answer to the wrong question, sorry...
It's a timing issue mostly. I bet that udev is beating the kernel. The
klibc version is faster, as the code is much smaller. I'm working on
the proper fix for this now that we have the needed changes in libsysfs
for me to do this.
thanks,
greg k-h
-------------------------------------------------------
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
^ permalink raw reply [flat|nested] 42+ messages in thread* Re: udev.rules.devfs + symlinks & a question
2003-12-10 12:01 udev.rules.devfs + symlinks & a question Svetoslav Slavtchev
` (33 preceding siblings ...)
2003-12-17 22:29 ` Greg KH
@ 2003-12-17 22:30 ` Greg KH
2003-12-17 22:51 ` Marco d'Itri
` (5 subsequent siblings)
40 siblings, 0 replies; 42+ messages in thread
From: Greg KH @ 2003-12-17 22:30 UTC (permalink / raw)
To: linux-hotplug
On Wed, Dec 17, 2003 at 09:16:33PM +0100, Svetoslav Slavtchev wrote:
> > On Sat, Dec 13, 2003 at 01:58:20AM +0100, Svetoslav Slavtchev wrote:
> > > it would be really great if one could enable devfs like name in
> > udev.conf
> > > and then udev checks udev.rules for user defined rules,
> >
> > What user? How does the kernel know what user a device is for? :)
> >
> > > and additionally chains them to the devfs one's in udev.rules.devfs
> >
> > Nah, if you want a devfs like udev config, you will have to specify it.
> > Remember you are not the "normal" user of udev by any means.
> >
>
> let's put it this way:
> i'm tring to figure out a way to replace devfs by udev
> in mandrake linux
> it's next version will ship with both 2.4 & 2.6 kernel,
> and mandrake has used devfs since it switched to the 2.4 kernel
> so devfs compatibility is quite needed
>
> if we use a single configuration file for creating devfs compatible devices
> and for user defined rules IMHO it's getting a bit messy
> so i think it would be good to use two separate files
> one just for user defined rules - e.g. BUS="usb" type="cdrom"
> NAME="usb-cdrw"
> and one for devfs compatibilty
We could add "include" support for the config files, but why not just
generate your "master" config file whenever the config is changed. cpp
or any other text processing program could easily generate a master
config from multiple config files.
thanks,
greg k-h
-------------------------------------------------------
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
^ permalink raw reply [flat|nested] 42+ messages in thread* Re: udev.rules.devfs + symlinks & a question
2003-12-10 12:01 udev.rules.devfs + symlinks & a question Svetoslav Slavtchev
` (34 preceding siblings ...)
2003-12-17 22:30 ` Greg KH
@ 2003-12-17 22:51 ` Marco d'Itri
2003-12-17 22:55 ` Svetoslav Slavtchev
` (4 subsequent siblings)
40 siblings, 0 replies; 42+ messages in thread
From: Marco d'Itri @ 2003-12-17 22:51 UTC (permalink / raw)
To: linux-hotplug
On Dec 17, Greg KH <greg@kroah.com> wrote:
>We could add "include" support for the config files, but why not just
>generate your "master" config file whenever the config is changed. cpp
>or any other text processing program could easily generate a master
>config from multiple config files.
I considered doing this for the debian package (like I do e.g. for
modprobe.conf), but it has the downside that every distribution would
probably do it a different way.
--
ciao, |
Marco | [3661 trH1jh9pQiypw]
-------------------------------------------------------
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
^ permalink raw reply [flat|nested] 42+ messages in thread* Re: udev.rules.devfs + symlinks & a question
2003-12-10 12:01 udev.rules.devfs + symlinks & a question Svetoslav Slavtchev
` (35 preceding siblings ...)
2003-12-17 22:51 ` Marco d'Itri
@ 2003-12-17 22:55 ` Svetoslav Slavtchev
2003-12-17 22:59 ` Svetoslav Slavtchev
` (3 subsequent siblings)
40 siblings, 0 replies; 42+ messages in thread
From: Svetoslav Slavtchev @ 2003-12-17 22:55 UTC (permalink / raw)
To: linux-hotplug
[-- Attachment #1: Type: text/plain, Size: 1253 bytes --]
> On Wed, Dec 17, 2003 at 09:39:08PM +0100, Svetoslav Slavtchev wrote:
> > > On Sat, Dec 13, 2003 at 10:33:08PM +0100, Svetoslav Slavtchev wrote:
> > > > what are the advantages/ disadvantages
> > > > to compile using klibc ?
> > >
> > > A very tiny static executable is created using klibc. That's
> necessary
> > > for early boot, and people who care about the size of things.
> > >
> >
> > thanks for the explanation :-)
> >
> > could you drop the link to linux source (IIRC ../../gregkh-2.5 )
> > in udev/klibc, and replace it with
> > make KERNEL_DIR=...... USE_KLIBC=true
>
> Hm, the udev/linux symlink points to:
> linux -> ../../../linux/linux-2.5
>
> If you want to build with klibc, adjust it to where your 2.6 kernel tree
> is located at.
>
> > i've a small patch but it's only for udev,
> > and it doesn't work with " make USE_KLIBC=true EXTRAS=..."
> > it's mostly
> > s:$(LINUX_INCLUDE_DIR)/kernel/include:$(KERNEL_DIR)/include:
> > in udev/Makefile & udev/klibc/MCONFIG
>
> Care to send it?
thanks :-)
and attached
together with the sed rule correction
svetljo
--
+++ GMX - die erste Adresse für Mail, Message, More +++
Neu: Preissenkung für MMS und FreeMMS! http://www.gmx.net
[-- Attachment #2: udev-fix_gen-udev.conf.diff --]
[-- Type: application/octet-stream, Size: 347 bytes --]
--- udev-009/Makefile.orig 2003-12-13 17:00:28.004517456 +0100
+++ udev-009/Makefile 2003-12-13 17:01:37.582939928 +0100
@@ -208,7 +208,7 @@
# Rules on how to create the generated config files
udev.conf:
- sed -e "s-@udevdir@-$(udevdir)-" < udev.conf.in > $@
+ sed -e "s:@udevdir@:$(udevdir):" < udev.conf.in > $@
$(OBJS): $(GEN_HEADERS)
[-- Attachment #3: udev-klibc_kheaders_hack.diff --]
[-- Type: application/octet-stream, Size: 1074 bytes --]
--- udev-009/Makefile.orig 2003-12-14 14:09:51.132297432 +0100
+++ udev-009/Makefile 2003-12-14 16:00:18.675757680 +0100
@@ -31,6 +31,10 @@
RELEASE_NAME = $(ROOT)-$(VERSION)
DESTDIR =
+ifndef KERNEL_DIR
+KERNEL_DIR=/usr/src/linux
+endif
+
# override this to make udev look in a different location for it's config files
prefix =
exec_prefix = ${prefix}
@@ -119,7 +123,7 @@
KLIBC_BASE = $(PWD)/klibc
KLIBC_DIR = $(KLIBC_BASE)/klibc
INCLUDE_DIR := $(KLIBC_DIR)/include
- LINUX_INCLUDE_DIR := $(KLIBC_BASE)/linux/include
+ LINUX_INCLUDE_DIR := $(KERNEL_DIR)/include
include $(KLIBC_DIR)/arch/$(ARCH)/MCONFIG
# arch specific objects
ARCH_LIB_OBJS = \
--- udev-009/klibc/MCONFIG.orig 2003-12-14 16:10:37.164733064 +0100
+++ udev-009/klibc/MCONFIG 2003-12-14 16:10:53.728215032 +0100
@@ -12,7 +12,7 @@
-I$(KLIBSRC)/arch/$(ARCH)/include \
-I$(KLIBSRC)/include/bits$(BITSIZE) \
-D__KLIBC__ -DBITSIZE=$(BITSIZE) -I$(KLIBSRC)/include \
- -I$(SRCROOT)/linux/include
+ -I$(KERNEL_DIR)/include
LDFLAGS =
AR = $(CROSS)ar
RANLIB = $(CROSS)ranlib
^ permalink raw reply [flat|nested] 42+ messages in thread* Re: udev.rules.devfs + symlinks & a question
2003-12-10 12:01 udev.rules.devfs + symlinks & a question Svetoslav Slavtchev
` (36 preceding siblings ...)
2003-12-17 22:55 ` Svetoslav Slavtchev
@ 2003-12-17 22:59 ` Svetoslav Slavtchev
2003-12-17 23:04 ` Svetoslav Slavtchev
` (2 subsequent siblings)
40 siblings, 0 replies; 42+ messages in thread
From: Svetoslav Slavtchev @ 2003-12-17 22:59 UTC (permalink / raw)
To: linux-hotplug
> On Wed, Dec 17, 2003 at 09:39:08PM +0100, Svetoslav Slavtchev wrote:
> >
> > could you change the sed rule for generating udev.conf
> > to use ":" instead "-" for separater, as it's getting confused
> > if you install to RPM_BUILD_ROOT/udev-$(version)/
>
> What do you mean? The sed rule:
> sed -e "s-@udevdir@-$(udevdir)-" < udev.conf.in > $@
>
> doesn't work for you? If not, patches to fix it are appreciated.
yes, it breaks if $(udevdir) contains "-"
patch attached in previous mail :-)
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
^ permalink raw reply [flat|nested] 42+ messages in thread* Re: udev.rules.devfs + symlinks & a question
2003-12-10 12:01 udev.rules.devfs + symlinks & a question Svetoslav Slavtchev
` (37 preceding siblings ...)
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
40 siblings, 0 replies; 42+ messages in thread
From: Svetoslav Slavtchev @ 2003-12-17 23:04 UTC (permalink / raw)
To: linux-hotplug
> On Wed, Dec 17, 2003 at 02:25:22PM -0800, Greg KH wrote:
> > On Wed, Dec 17, 2003 at 09:39:08PM +0100, Svetoslav Slavtchev wrote:
> > > and i have a small issue with klibc compiled udev,
> > > at least bk from a 1-2 days ago
> > > most devicefs alike rules are followed, but not all
> > > e.g the rule for loop devices is ignored by dev compailed against
> > > klibc, but is followed by udev compiled against libc
> >
> > See the man page for why this is:
> > If udev was built using klibc or is used before the user
> > database is accessible (e.g. initrd(4)), only numeric owner and
> > group values may be used.
ok, thanks
> bah, wrong answer to the wrong question, sorry...
>
> It's a timing issue mostly. I bet that udev is beating the kernel. The
> klibc version is faster, as the code is much smaller. I'm working on
> the proper fix for this now that we have the needed changes in libsysfs
> for me to do this.
with udev 009 libc all rules are ignored :
and all devices are dumped in /udev (
any ideas ?
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
^ permalink raw reply [flat|nested] 42+ messages in thread* Re: udev.rules.devfs + symlinks & a question
2003-12-10 12:01 udev.rules.devfs + symlinks & a question Svetoslav Slavtchev
` (38 preceding siblings ...)
2003-12-17 23:04 ` Svetoslav Slavtchev
@ 2003-12-17 23:06 ` Svetoslav Slavtchev
2003-12-17 23:08 ` Greg KH
40 siblings, 0 replies; 42+ messages in thread
From: Svetoslav Slavtchev @ 2003-12-17 23:06 UTC (permalink / raw)
To: linux-hotplug
> On Wed, Dec 17, 2003 at 09:16:33PM +0100, Svetoslav Slavtchev wrote:
> > > On Sat, Dec 13, 2003 at 01:58:20AM +0100, Svetoslav Slavtchev wrote:
> > > > it would be really great if one could enable devfs like name in
> > > udev.conf
> > > > and then udev checks udev.rules for user defined rules,
> > >
> > > What user? How does the kernel know what user a device is for? :)
> > >
> > > > and additionally chains them to the devfs one's in udev.rules.devfs
> > >
> > > Nah, if you want a devfs like udev config, you will have to specify
> it.
> > > Remember you are not the "normal" user of udev by any means.
> > >
> >
> > let's put it this way:
> > i'm tring to figure out a way to replace devfs by udev
> > in mandrake linux
> > it's next version will ship with both 2.4 & 2.6 kernel,
> > and mandrake has used devfs since it switched to the 2.4 kernel
> > so devfs compatibility is quite needed
> >
> > if we use a single configuration file for creating devfs compatible
> devices
> > and for user defined rules IMHO it's getting a bit messy
> > so i think it would be good to use two separate files
> > one just for user defined rules - e.g. BUS="usb" type="cdrom"
> > NAME="usb-cdrw"
> > and one for devfs compatibilty
>
> We could add "include" support for the config files, but why not just
> generate your "master" config file whenever the config is changed. cpp
> or any other text processing program could easily generate a master
> config from multiple config files.
i was also thinking of an "include"
and i think it's more elegant then some bash scripts
or the like :-)
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
^ permalink raw reply [flat|nested] 42+ messages in thread* Re: udev.rules.devfs + symlinks & a question
2003-12-10 12:01 udev.rules.devfs + symlinks & a question Svetoslav Slavtchev
` (39 preceding siblings ...)
2003-12-17 23:06 ` Svetoslav Slavtchev
@ 2003-12-17 23:08 ` Greg KH
40 siblings, 0 replies; 42+ messages in thread
From: Greg KH @ 2003-12-17 23:08 UTC (permalink / raw)
To: linux-hotplug
On Thu, Dec 18, 2003 at 12:04:13AM +0100, Svetoslav Slavtchev wrote:
> >
> > It's a timing issue mostly. I bet that udev is beating the kernel. The
> > klibc version is faster, as the code is much smaller. I'm working on
> > the proper fix for this now that we have the needed changes in libsysfs
> > for me to do this.
>
> with udev 009 libc all rules are ignored :
> and all devices are dumped in /udev (
>
> any ideas ?
Does the udev-test.pl script work? (you need to be root when running
it.)
thanks,
greg k-h
-------------------------------------------------------
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
^ permalink raw reply [flat|nested] 42+ messages in thread