usb floppy delays in /sys
David Zeuthen
david at fubar.dk
Thu Sep 16 11:28:48 PDT 2004
On Thu, 2004-09-16 at 19:07 +0100, Luke Kenneth Casson Leighton wrote:
> On Thu, Sep 16, 2004 at 07:35:03PM +0200, David Zeuthen wrote:
> > On Thu, 2004-09-16 at 18:34 +0100, Luke Kenneth Casson Leighton wrote:
> > > okay, it's a 55k file, i object to doing things like sending big files
> > > to lists so it's at http://hands.com/~lkcl/hal-hotplug-fail.typescript
> > >
> >
> > But this do seem to work. From the log:
> >
> > > 20984: added mount point '/media/floppy' for device '/dev/sda'
> >
> > Here, fstab-sync adds your mount point. What's the problem? :-)
>
> right towards the bottom of the typescript file, about 20 lines
> from the bottom, it says:
>
> 18:31:22.140 [E] linux/osspec.c:1188: d is NULL!
>
> that's the problem - add_device has failed.
>
Oh, this just means that the hal daemon didn't care about the hotplug
event which is perfectly acceptable. We also kind of have to as the
driver core in Linux 2.6 is sort of funny insofar that you get two
hotplug events for the same SCSI device - they correspond to these two
entries
/sys/bus/scsi/devices/4:0:0:0 -> ../../../devices/pci0000:00/0000:00:07.2/usb1/1-1/1-1:1.0/host4/4:0:0:0
/sys/class/scsi_device/4:0:0:0/device -> ../../../devices/pci0000:00/0000:00:07.2/usb1/1-1/1-1:1.0/host4/4:0:0:0
There's also sysfs busses and classes hal doesn't yet support but
someday we will - for instance, Kay just added support for multimedia
devices (V4L and friends).
Btw, one of the goals of hal is to provide an abstract view on hardware
such that people can go ahead and implement this on FreeBSD, Solaris,
whatever and then software relying on HAL will just work at least from a
device discovery point of view. That's pretty important for most free
software desktop projects.
> > > 20984: fstab-sync reset context /etc/fstab->system_u:object_r:etc_t
> >
> > You mentioned SELinux earlier so I thought I might mention that Dan
> > Walsh just told me yesterday that I don't need to do this when I create
> > the temporary file in /etc.
>
> ah, right.
>
> the other side of the conversation so to speak.
>
> it can't do any haaarrrm :)
>
I guess not.
David
_______________________________________________
hal mailing list
hal at freedesktop.org
http://freedesktop.org/mailman/listinfo/hal
More information about the Hal
mailing list