* udev/ubuntu problem solved
@ 2007-07-10 14:53 Andreas Jellinghaus
2007-07-10 15:39 ` Kay Sievers
` (11 more replies)
0 siblings, 12 replies; 13+ messages in thread
From: Andreas Jellinghaus @ 2007-07-10 14:53 UTC (permalink / raw)
To: linux-hotplug
I finally figured out what is wrong with udev on ubuntu.
ubuntu mounts usbfs as /proc/bus/usb/.usbfs
and has udev create /dev/bus/usb and bind-mounts that as /proc/bus/usb.
so even though I get events for /proc/bus/usb/NNN/NNN devices and they
exist if I manually look, my app doesn't find them. the reason is: udev runs
/lib/udev/openct_usb, but creates the device in /dev/bus/usb (and thus on
ubuntu /proc/bus/usb) only after my script finishes. while I can add sleeps
to avoid races, they don't help because udev will not create the device until
my script gives up.
the solution is to add some
( ...
) &
disown %1
exit 0
in my script so the core code runs in the background, where it can wait
for the device file to be created by udev and then start the ifdhandler
process that will handle it.
also during debugging I noticed: it is not a good idea to start/stop udev
using the init script. at first I thought udev wasn't re-reading it rules
properly, so I tried that. but the result of restarting udev init script is
this: /proc/bus/usb is no longer a bind mount of /dev/bus/usb. instead it
is an independend copy, and it is no longer updated at all. thus new devices
show up only in /dev/bus/usb and /proc/bus/usb/.usbfs, but not
in /proc/bus/usb/.
Regards, Andreas
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
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] 13+ messages in thread
* Re: udev/ubuntu problem solved
2007-07-10 14:53 udev/ubuntu problem solved Andreas Jellinghaus
@ 2007-07-10 15:39 ` Kay Sievers
2007-07-10 15:46 ` Andreas Jellinghaus
` (10 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: Kay Sievers @ 2007-07-10 15:39 UTC (permalink / raw)
To: linux-hotplug
On 7/10/07, Andreas Jellinghaus <aj@dungeon.inka.de> wrote:
> I finally figured out what is wrong with udev on ubuntu.
>
> ubuntu mounts usbfs as /proc/bus/usb/.usbfs
> and has udev create /dev/bus/usb and bind-mounts that as /proc/bus/usb.
What are theses guys smoking? That's so sick to bind-mount
/dev-directories to /proc! I wouldn't support such a system at all. It
is totally broken.
> so even though I get events for /proc/bus/usb/NNN/NNN devices and they
> exist if I manually look, my app doesn't find them. the reason is: udev runs
> /lib/udev/openct_usb, but creates the device in /dev/bus/usb (and thus on
> ubuntu /proc/bus/usb) only after my script finishes. while I can add sleeps
> to avoid races, they don't help because udev will not create the device until
> my script gives up.
Are you using PROGRAM? That is for plugging external program into udev
to give devices a name or symlink. If you use RUN+=, your program
never runs before the node and all symlinks are created.
> also during debugging I noticed: it is not a good idea to start/stop udev
> using the init script. at first I thought udev wasn't re-reading it rules
> properly, so I tried that.
Nobody should ever stop udev, You may miss important system events here.
> the result of restarting udev init script is
> this: /proc/bus/usb is no longer a bind mount of /dev/bus/usb
Well, systems that do such crap, just ask for trouble like this.
Kay
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
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] 13+ messages in thread
* Re: udev/ubuntu problem solved
2007-07-10 14:53 udev/ubuntu problem solved Andreas Jellinghaus
2007-07-10 15:39 ` Kay Sievers
@ 2007-07-10 15:46 ` Andreas Jellinghaus
2007-07-10 16:19 ` Kay Sievers
` (9 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: Andreas Jellinghaus @ 2007-07-10 15:46 UTC (permalink / raw)
To: linux-hotplug
On Tuesday 10 July 2007 17:39:24 Kay Sievers wrote:
> What are theses guys smoking? That's so sick to bind-mount
> /dev-directories to /proc! I wouldn't support such a system at all. It
> is totally broken.
I was worried about that too. I guess they made that change so all
applications get the benefit of the ACL's in /dev/bus/usb without changes
to the source code (i.e. path adjustment).
> Are you using PROGRAM? That is for plugging external program into udev
> to give devices a name or symlink. If you use RUN+=, your program
> never runs before the node and all symlinks are created.
no I'm using RUN+= and I thought this would work the wy you described.
testing on ubuntu edgy (which has udev 108-0ubuntu4) shows this is different.
when I have my loop inside the script I RUN+= I can increase the timeout to 20
seconds, still it times out as the $DEVICE file is not there. if I have the
script start the loop in the background then it find the file after 100 ms
(one sleep).
maybe my diagnosis is a bit off: not the device file is created late, but the
DEVICE event is processed first, and the other events are in a queue in the
meantime till my RUN+= script is finished? and some other event triggers the
creation of /dev/bus/usb/NNN/NNN and it is processes after the event with
MODALIAS and DEVICE=/proc/bus/usb/NNN/NNN ? that would explain what I'm seing
too. is this explanation possible?
Thanks,
Andreas
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
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] 13+ messages in thread
* Re: udev/ubuntu problem solved
2007-07-10 14:53 udev/ubuntu problem solved Andreas Jellinghaus
2007-07-10 15:39 ` Kay Sievers
2007-07-10 15:46 ` Andreas Jellinghaus
@ 2007-07-10 16:19 ` Kay Sievers
2007-07-11 7:32 ` Andreas Jellinghaus
` (8 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: Kay Sievers @ 2007-07-10 16:19 UTC (permalink / raw)
To: linux-hotplug
On 7/10/07, Andreas Jellinghaus <aj@dungeon.inka.de> wrote:
> On Tuesday 10 July 2007 17:39:24 Kay Sievers wrote:
> > What are theses guys smoking? That's so sick to bind-mount
> > /dev-directories to /proc! I wouldn't support such a system at all. It
> > is totally broken.
>
> I was worried about that too. I guess they made that change so all
> applications get the benefit of the ACL's in /dev/bus/usb without changes
> to the source code (i.e. path adjustment).
Libusb takes care of that, it handles /dev/bus/usb by default, and
falls back to /proc if it doesn't exist.
> > Are you using PROGRAM? That is for plugging external program into udev
> > to give devices a name or symlink. If you use RUN+=, your program
> > never runs before the node and all symlinks are created.
>
> no I'm using RUN+= and I thought this would work the wy you described.
> testing on ubuntu edgy (which has udev 108-0ubuntu4) shows this is different.
> when I have my loop inside the script I RUN+= I can increase the timeout to 20
> seconds, still it times out as the $DEVICE file is not there. if I have the
> script start the loop in the background then it find the file after 100 ms
> (one sleep).
Oh, you are on a different event, not the one that creates the node.
The "usb_device" class devices create the node, but you hook into the
usb interface. On older kernel it's a timing problem, without a proper
solution. Kernel 2.6.22 will create the device nodes from the parent
device of the interface, so in the future this work properly.
> maybe my diagnosis is a bit off: not the device file is created late, but the
> DEVICE event is processed first, and the other events are in a queue in the
> meantime till my RUN+= script is finished? and some other event triggers the
> creation of /dev/bus/usb/NNN/NNN and it is processes after the event with
> MODALIAS and DEVICE=/proc/bus/usb/NNN/NNN ? that would explain what I'm seing
> too. is this explanation possible?
Yeah, the "interface device" and the "node device" are siblings in the
kernel device tree and therefore have no defined order and udev can't
access the properties from each other. 2.6.22 should solve that
problem.
Kay
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
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] 13+ messages in thread
* Re: udev/ubuntu problem solved
2007-07-10 14:53 udev/ubuntu problem solved Andreas Jellinghaus
` (2 preceding siblings ...)
2007-07-10 16:19 ` Kay Sievers
@ 2007-07-11 7:32 ` Andreas Jellinghaus
2007-07-11 8:34 ` Scott James Remnant
` (7 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: Andreas Jellinghaus @ 2007-07-11 7:32 UTC (permalink / raw)
To: linux-hotplug
so if udev gets several events: are those processed serialized or in
parallel?
if serialized (including waiting for any RUN+= job to finish) it would
explain the problems I'm seeing.
Thanks.
Regards, Andreas
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
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] 13+ messages in thread
* Re: udev/ubuntu problem solved
2007-07-10 14:53 udev/ubuntu problem solved Andreas Jellinghaus
` (3 preceding siblings ...)
2007-07-11 7:32 ` Andreas Jellinghaus
@ 2007-07-11 8:34 ` Scott James Remnant
2007-07-11 10:09 ` Kay Sievers
` (6 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: Scott James Remnant @ 2007-07-11 8:34 UTC (permalink / raw)
To: linux-hotplug
[-- Attachment #1.1: Type: text/plain, Size: 959 bytes --]
On Tue, 2007-07-10 at 17:39 +0200, Kay Sievers wrote:
> On 7/10/07, Andreas Jellinghaus <aj@dungeon.inka.de> wrote:
> > I finally figured out what is wrong with udev on ubuntu.
> >
> > ubuntu mounts usbfs as /proc/bus/usb/.usbfs
> > and has udev create /dev/bus/usb and bind-mounts that as /proc/bus/usb.
>
> What are theses guys smoking? That's so sick to bind-mount
> /dev-directories to /proc! I wouldn't support such a system at all. It
> is totally broken.
>
It works <g>
What we do is mount the usbfs filesystem on /dev/bus/usb/.usbfs, and
symlink the devices file from that into the parent directory (so
that /dev/bus/usb/devices exists).
The whole lot is then bind-mounted to /proc/bus/usb; so an application
using /proc/bus/usb sees the same tree as a fixed one.
We would fix the apps, but unfortunately we don't have the source to
VMware!
Scott
--
Scott James Remnant
Ubuntu Development Manager
scott@ubuntu.com
[-- Attachment #1.2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
[-- Attachment #2: Type: text/plain, Size: 286 bytes --]
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
[-- Attachment #3: Type: text/plain, Size: 226 bytes --]
_______________________________________________
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] 13+ messages in thread
* Re: udev/ubuntu problem solved
2007-07-10 14:53 udev/ubuntu problem solved Andreas Jellinghaus
` (4 preceding siblings ...)
2007-07-11 8:34 ` Scott James Remnant
@ 2007-07-11 10:09 ` Kay Sievers
2007-07-12 0:35 ` Greg KH
` (5 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: Kay Sievers @ 2007-07-11 10:09 UTC (permalink / raw)
To: linux-hotplug
On 7/11/07, Andreas Jellinghaus <aj@ciphirelabs.com> wrote:
> so if udev gets several events: are those processed serialized or in
> parallel?
>
> if serialized (including waiting for any RUN+= job to finish) it would
> explain the problems I'm seeing.
One after the other for the same event, yes. All RUN keys for one
device run after all rules are processed and the device node is
created.
Multiple events run at the same time, if they don't depend on each
other, like a child always waits for the parent to finish.
Kay
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
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] 13+ messages in thread
* Re: udev/ubuntu problem solved
2007-07-10 14:53 udev/ubuntu problem solved Andreas Jellinghaus
` (5 preceding siblings ...)
2007-07-11 10:09 ` Kay Sievers
@ 2007-07-12 0:35 ` Greg KH
2007-07-12 8:52 ` Scott James Remnant
` (4 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: Greg KH @ 2007-07-12 0:35 UTC (permalink / raw)
To: linux-hotplug
On Wed, Jul 11, 2007 at 09:34:31AM +0100, Scott James Remnant wrote:
> On Tue, 2007-07-10 at 17:39 +0200, Kay Sievers wrote:
>
> > On 7/10/07, Andreas Jellinghaus <aj@dungeon.inka.de> wrote:
> > > I finally figured out what is wrong with udev on ubuntu.
> > >
> > > ubuntu mounts usbfs as /proc/bus/usb/.usbfs
> > > and has udev create /dev/bus/usb and bind-mounts that as /proc/bus/usb.
> >
> > What are theses guys smoking? That's so sick to bind-mount
> > /dev-directories to /proc! I wouldn't support such a system at all. It
> > is totally broken.
> >
> It works <g>
>
> What we do is mount the usbfs filesystem on /dev/bus/usb/.usbfs, and
> symlink the devices file from that into the parent directory (so
> that /dev/bus/usb/devices exists).
>
> The whole lot is then bind-mounted to /proc/bus/usb; so an application
> using /proc/bus/usb sees the same tree as a fixed one.
>
> We would fix the apps, but unfortunately we don't have the source to
> VMware!
vmware originally said they would fix their program up to handle this
properly. Unfortunatly, they seem to have forgotten this and do not
seem to be willing to do this, especially when distros do looney things
like this to apease them :)
thanks,
greg k-h
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
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] 13+ messages in thread
* Re: udev/ubuntu problem solved
2007-07-10 14:53 udev/ubuntu problem solved Andreas Jellinghaus
` (6 preceding siblings ...)
2007-07-12 0:35 ` Greg KH
@ 2007-07-12 8:52 ` Scott James Remnant
2007-07-12 16:09 ` Greg KH
` (3 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: Scott James Remnant @ 2007-07-12 8:52 UTC (permalink / raw)
To: linux-hotplug
[-- Attachment #1.1: Type: text/plain, Size: 1568 bytes --]
On Wed, 2007-07-11 at 17:35 -0700, Greg KH wrote:
> On Wed, Jul 11, 2007 at 09:34:31AM +0100, Scott James Remnant wrote:
> > On Tue, 2007-07-10 at 17:39 +0200, Kay Sievers wrote:
> >
> > > On 7/10/07, Andreas Jellinghaus <aj@dungeon.inka.de> wrote:
> > > > I finally figured out what is wrong with udev on ubuntu.
> > > >
> > > > ubuntu mounts usbfs as /proc/bus/usb/.usbfs
> > > > and has udev create /dev/bus/usb and bind-mounts that as /proc/bus/usb.
> > >
> > > What are theses guys smoking? That's so sick to bind-mount
> > > /dev-directories to /proc! I wouldn't support such a system at all. It
> > > is totally broken.
> > >
> > It works <g>
> >
> > What we do is mount the usbfs filesystem on /dev/bus/usb/.usbfs, and
> > symlink the devices file from that into the parent directory (so
> > that /dev/bus/usb/devices exists).
> >
> > The whole lot is then bind-mounted to /proc/bus/usb; so an application
> > using /proc/bus/usb sees the same tree as a fixed one.
> >
> > We would fix the apps, but unfortunately we don't have the source to
> > VMware!
>
> vmware originally said they would fix their program up to handle this
> properly. Unfortunatly, they seem to have forgotten this and do not
> seem to be willing to do this, especially when distros do looney things
> like this to apease them :)
>
VMware appears to work on my laptop here, which is running the
development version of Ubuntu (which lacks the /proc/bus/usb hack).
Scott
--
Scott James Remnant
Ubuntu Development Manager
scott@ubuntu.com
[-- Attachment #1.2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
[-- Attachment #2: Type: text/plain, Size: 286 bytes --]
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
[-- Attachment #3: Type: text/plain, Size: 226 bytes --]
_______________________________________________
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] 13+ messages in thread
* Re: udev/ubuntu problem solved
2007-07-10 14:53 udev/ubuntu problem solved Andreas Jellinghaus
` (7 preceding siblings ...)
2007-07-12 8:52 ` Scott James Remnant
@ 2007-07-12 16:09 ` Greg KH
2007-07-12 16:58 ` Scott James Remnant
` (2 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: Greg KH @ 2007-07-12 16:09 UTC (permalink / raw)
To: linux-hotplug
On Thu, Jul 12, 2007 at 09:52:15AM +0100, Scott James Remnant wrote:
> On Wed, 2007-07-11 at 17:35 -0700, Greg KH wrote:
>
> > On Wed, Jul 11, 2007 at 09:34:31AM +0100, Scott James Remnant wrote:
> > > On Tue, 2007-07-10 at 17:39 +0200, Kay Sievers wrote:
> > >
> > > > On 7/10/07, Andreas Jellinghaus <aj@dungeon.inka.de> wrote:
> > > > > I finally figured out what is wrong with udev on ubuntu.
> > > > >
> > > > > ubuntu mounts usbfs as /proc/bus/usb/.usbfs
> > > > > and has udev create /dev/bus/usb and bind-mounts that as /proc/bus/usb.
> > > >
> > > > What are theses guys smoking? That's so sick to bind-mount
> > > > /dev-directories to /proc! I wouldn't support such a system at all. It
> > > > is totally broken.
> > > >
> > > It works <g>
> > >
> > > What we do is mount the usbfs filesystem on /dev/bus/usb/.usbfs, and
> > > symlink the devices file from that into the parent directory (so
> > > that /dev/bus/usb/devices exists).
> > >
> > > The whole lot is then bind-mounted to /proc/bus/usb; so an application
> > > using /proc/bus/usb sees the same tree as a fixed one.
> > >
> > > We would fix the apps, but unfortunately we don't have the source to
> > > VMware!
> >
> > vmware originally said they would fix their program up to handle this
> > properly. Unfortunatly, they seem to have forgotten this and do not
> > seem to be willing to do this, especially when distros do looney things
> > like this to apease them :)
> >
> VMware appears to work on my laptop here, which is running the
> development version of Ubuntu (which lacks the /proc/bus/usb hack).
Are you using usb devices within the guest operating systems and Ubuntu
as the host os?
thanks,
greg k-h
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
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] 13+ messages in thread
* Re: udev/ubuntu problem solved
2007-07-10 14:53 udev/ubuntu problem solved Andreas Jellinghaus
` (8 preceding siblings ...)
2007-07-12 16:09 ` Greg KH
@ 2007-07-12 16:58 ` Scott James Remnant
2007-07-12 18:37 ` Greg KH
2007-07-13 8:44 ` Scott James Remnant
11 siblings, 0 replies; 13+ messages in thread
From: Scott James Remnant @ 2007-07-12 16:58 UTC (permalink / raw)
To: linux-hotplug
[-- Attachment #1.1: Type: text/plain, Size: 1933 bytes --]
On Thu, 2007-07-12 at 09:09 -0700, Greg KH wrote:
> On Thu, Jul 12, 2007 at 09:52:15AM +0100, Scott James Remnant wrote:
> > On Wed, 2007-07-11 at 17:35 -0700, Greg KH wrote:
> >
> > > On Wed, Jul 11, 2007 at 09:34:31AM +0100, Scott James Remnant wrote:
> > > > On Tue, 2007-07-10 at 17:39 +0200, Kay Sievers wrote:
> > > >
> > > > > On 7/10/07, Andreas Jellinghaus <aj@dungeon.inka.de> wrote:
> > > > > > I finally figured out what is wrong with udev on ubuntu.
> > > > > >
> > > > > > ubuntu mounts usbfs as /proc/bus/us/.usbfs
> > > > > > and has udev create /dev/bus/usb and bind-mounts that as /proc/bus/usb.
> > > > >
> > > > > What are theses guys smoking? That's so sick to bind-mount
> > > > > /dev-directories to /proc! I wouldn't support such a system at all. It
> > > > > is totally broken.
> > > > >
> > > > It works <g>
> > > >
> > > > What we do is mount the usbfs filesystem on /dev/bus/usb/.usbfs, and
> > > > symlink the devices file from that into the parent directory (so
> > > > that /dev/bus/usb/devices exists).
> > > >
> > > > The whole lot is then bind-mounted to /proc/bus/usb; so an application
> > > > using /proc/bus/usb sees the same tree as a fixed one.
> > > >
> > > > We would fix the apps, but unfortunately we don't have the source to
> > > > VMware!
> > >
> > > vmware originally said they would fix their program up to handle this
> > > properly. Unfortunatly, they seem to have forgotten this and do not
> > > seem to be willing to do this, especially when distros do looney things
> > > like this to apease them :)
> > >
> > VMware appears to work on my laptop here, which is running the
> > development version of Ubuntu (which lacks the /proc/bus/usb hack).
>
> Are you using usb devices within the guest operating systems and Ubuntu
> as the host os?
>
Yes
Scott
--
Scott James Remnant
Ubuntu Development Manager
scott@ubuntu.com
[-- Attachment #1.2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
[-- Attachment #2: Type: text/plain, Size: 286 bytes --]
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
[-- Attachment #3: Type: text/plain, Size: 226 bytes --]
_______________________________________________
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] 13+ messages in thread
* Re: udev/ubuntu problem solved
2007-07-10 14:53 udev/ubuntu problem solved Andreas Jellinghaus
` (9 preceding siblings ...)
2007-07-12 16:58 ` Scott James Remnant
@ 2007-07-12 18:37 ` Greg KH
2007-07-13 8:44 ` Scott James Remnant
11 siblings, 0 replies; 13+ messages in thread
From: Greg KH @ 2007-07-12 18:37 UTC (permalink / raw)
To: linux-hotplug
On Thu, Jul 12, 2007 at 05:58:43PM +0100, Scott James Remnant wrote:
> On Thu, 2007-07-12 at 09:09 -0700, Greg KH wrote:
> > On Thu, Jul 12, 2007 at 09:52:15AM +0100, Scott James Remnant wrote:
> > > On Wed, 2007-07-11 at 17:35 -0700, Greg KH wrote:
> > >
> > > > On Wed, Jul 11, 2007 at 09:34:31AM +0100, Scott James Remnant wrote:
> > > > > On Tue, 2007-07-10 at 17:39 +0200, Kay Sievers wrote:
> > > > >
> > > > > > On 7/10/07, Andreas Jellinghaus <aj@dungeon.inka.de> wrote:
> > > > > > > I finally figured out what is wrong with udev on ubuntu.
> > > > > > >
> > > > > > > ubuntu mounts usbfs as /proc/bus/us/.usbfs
> > > > > > > and has udev create /dev/bus/usb and bind-mounts that as /proc/bus/usb.
> > > > > >
> > > > > > What are theses guys smoking? That's so sick to bind-mount
> > > > > > /dev-directories to /proc! I wouldn't support such a system at all. It
> > > > > > is totally broken.
> > > > > >
> > > > > It works <g>
> > > > >
> > > > > What we do is mount the usbfs filesystem on /dev/bus/usb/.usbfs, and
> > > > > symlink the devices file from that into the parent directory (so
> > > > > that /dev/bus/usb/devices exists).
> > > > >
> > > > > The whole lot is then bind-mounted to /proc/bus/usb; so an application
> > > > > using /proc/bus/usb sees the same tree as a fixed one.
> > > > >
> > > > > We would fix the apps, but unfortunately we don't have the source to
> > > > > VMware!
> > > >
> > > > vmware originally said they would fix their program up to handle this
> > > > properly. Unfortunatly, they seem to have forgotten this and do not
> > > > seem to be willing to do this, especially when distros do looney things
> > > > like this to apease them :)
> > > >
> > > VMware appears to work on my laptop here, which is running the
> > > development version of Ubuntu (which lacks the /proc/bus/usb hack).
> >
> > Are you using usb devices within the guest operating systems and Ubuntu
> > as the host os?
> >
> Yes
Great, then you can disable that bind mount from your init scripts and
everyone will be happy :)
thanks,
greg k-h
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
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] 13+ messages in thread
* Re: udev/ubuntu problem solved
2007-07-10 14:53 udev/ubuntu problem solved Andreas Jellinghaus
` (10 preceding siblings ...)
2007-07-12 18:37 ` Greg KH
@ 2007-07-13 8:44 ` Scott James Remnant
11 siblings, 0 replies; 13+ messages in thread
From: Scott James Remnant @ 2007-07-13 8:44 UTC (permalink / raw)
To: linux-hotplug
[-- Attachment #1.1: Type: text/plain, Size: 264 bytes --]
On Thu, 2007-07-12 at 11:37 -0700, Greg KH wrote:
> Great, then you can disable that bind mount from your init scripts and
> everyone will be happy :)
>
It's already disabled
Scott
--
Scott James Remnant
Ubuntu Development Manager
scott@ubuntu.com
[-- Attachment #1.2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
[-- Attachment #2: Type: text/plain, Size: 286 bytes --]
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
[-- Attachment #3: Type: text/plain, Size: 226 bytes --]
_______________________________________________
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] 13+ messages in thread
end of thread, other threads:[~2007-07-13 8:44 UTC | newest]
Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-07-10 14:53 udev/ubuntu problem solved Andreas Jellinghaus
2007-07-10 15:39 ` Kay Sievers
2007-07-10 15:46 ` Andreas Jellinghaus
2007-07-10 16:19 ` Kay Sievers
2007-07-11 7:32 ` Andreas Jellinghaus
2007-07-11 8:34 ` Scott James Remnant
2007-07-11 10:09 ` Kay Sievers
2007-07-12 0:35 ` Greg KH
2007-07-12 8:52 ` Scott James Remnant
2007-07-12 16:09 ` Greg KH
2007-07-12 16:58 ` Scott James Remnant
2007-07-12 18:37 ` Greg KH
2007-07-13 8:44 ` Scott James Remnant
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).