* Re: What does /udev think its doing? (Thanks)
@ 2004-03-17 17:37 reg
2004-03-17 18:11 ` Kay Sievers
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: reg @ 2004-03-17 17:37 UTC (permalink / raw)
To: linux-hotplug
> On Wed, 2004-03-17 at 09:48, reg@dwf.com wrote:
> > OK, Im confused, what does /udev think its doing here.
> > This is udev-021.
> >
> > the appropriate rule in udev.rules is
> >
> > BUS="scsi", SYSFS{vendor}="IC25N020", NAME{all_partitions}="usb_disk"
> >
> > The result of a ls -lai of /udev/usb is
> >
> > 449164 brw------- 1 root root 8, 2 Mar 17 01:17 /udev/usb_disk
>
> Please try:
>
> BUS="scsi", KERNEL="*[!0-9]", SYSFS{vendor}="IC25N020", NAME{all_partitions}="usb_disk"
>
> it will catch the main device only. It looks like your rule applies
> to all partitions and the result in the same name which is replaces
> the former with every match?
>
> If this doesn't work, please tell what you get with:
>
> BUS="scsi", SYSFS{vendor}="IC25N020", NAME{all_partitions}="usb_disk%n"
Thanks, That works like a charm.
--
Reg.Clemens
reg@dwf.com
-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id\x1470&alloc_id638&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] 4+ messages in thread* Re: What does /udev think its doing? (Thanks)
2004-03-17 17:37 What does /udev think its doing? (Thanks) reg
@ 2004-03-17 18:11 ` Kay Sievers
2004-03-18 1:09 ` Greg KH
2004-03-18 3:12 ` Kay Sievers
2 siblings, 0 replies; 4+ messages in thread
From: Kay Sievers @ 2004-03-17 18:11 UTC (permalink / raw)
To: linux-hotplug
On Wed, 2004-03-17 at 18:37, reg@dwf.com wrote:
> > On Wed, 2004-03-17 at 09:48, reg@dwf.com wrote:
> > > OK, Im confused, what does /udev think its doing here.
> > > This is udev-021.
> > >
> > > the appropriate rule in udev.rules is
> > >
> > > BUS="scsi", SYSFS{vendor}="IC25N020", NAME{all_partitions}="usb_disk"
> > >
> > > The result of a ls -lai of /udev/usb is
> > >
> > > 449164 brw------- 1 root root 8, 2 Mar 17 01:17 /udev/usb_disk
> >
> > Please try:
> >
> > BUS="scsi", KERNEL="*[!0-9]", SYSFS{vendor}="IC25N020", NAME{all_partitions}="usb_disk"
> >
> > it will catch the main device only. It looks like your rule applies
> > to all partitions and the result in the same name which is replaces
> > the former with every match?
> >
> > If this doesn't work, please tell what you get with:
> >
> > BUS="scsi", SYSFS{vendor}="IC25N020", NAME{all_partitions}="usb_disk%n"
>
> Thanks, That works like a charm.
Fine. Seems that we should change NAME{all_partitions} to match only the
main device.
thanks for reporting it,
Kay
-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id\x1470&alloc_id638&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] 4+ messages in thread* Re: What does /udev think its doing? (Thanks)
2004-03-17 17:37 What does /udev think its doing? (Thanks) reg
2004-03-17 18:11 ` Kay Sievers
@ 2004-03-18 1:09 ` Greg KH
2004-03-18 3:12 ` Kay Sievers
2 siblings, 0 replies; 4+ messages in thread
From: Greg KH @ 2004-03-18 1:09 UTC (permalink / raw)
To: linux-hotplug
On Wed, Mar 17, 2004 at 07:11:32PM +0100, Kay Sievers wrote:
>
> Fine. Seems that we should change NAME{all_partitions} to match only the
> main device.
Yeah, we should probably do it.
Hm, should I add this to the TODO file...? :)
thanks,
greg k-h
-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id\x1470&alloc_id638&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] 4+ messages in thread* Re: What does /udev think its doing? (Thanks)
2004-03-17 17:37 What does /udev think its doing? (Thanks) reg
2004-03-17 18:11 ` Kay Sievers
2004-03-18 1:09 ` Greg KH
@ 2004-03-18 3:12 ` Kay Sievers
2 siblings, 0 replies; 4+ messages in thread
From: Kay Sievers @ 2004-03-18 3:12 UTC (permalink / raw)
To: linux-hotplug
On Thu, 2004-03-18 at 02:09, Greg KH wrote:
> On Wed, Mar 17, 2004 at 07:11:32PM +0100, Kay Sievers wrote:
> >
> > Fine. Seems that we should change NAME{all_partitions} to match only the
> > main device.
>
> Yeah, we should probably do it.
>
> Hm, should I add this to the TODO file...? :)
:)
Hey, you know, I don't sleep while anything is in the TODO :)
No, I did it already. I will submit it after the next round is in.
thanks,
Kay
-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id\x1470&alloc_id638&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] 4+ messages in thread
end of thread, other threads:[~2004-03-18 3:12 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-03-17 17:37 What does /udev think its doing? (Thanks) reg
2004-03-17 18:11 ` Kay Sievers
2004-03-18 1:09 ` Greg KH
2004-03-18 3:12 ` Kay Sievers
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).