Le 25.01.2005 17:26:19, Sjoerd Simons a �crit�:

[ destructive compression ]


Oh that's a good hint.. First i saw fstab-sync running in your trace, which is not necessary so it's probably best to remove it.

How to remove it?


Second if you strace it, hal runs as root, if you don't it runs as user haldaemon...

Well, you told me to run: hald... run hald --daemon=no --verbose=yes If I do that with a normal user, I get the following error

[EMAIL PROTECTED] % /usr/sbin/hald --daemon=no --verbose=yes
~
17:42:36.712 [I] hald.c:394: hal 0.4.6
17:42:36.713 [I] hald.c:398: Will not daemonize
17:42:36.740 [E] hald_dbus.c:1945: dbus_bus_acquire_service():
Connection ":1.54" is not allowed to own the service
"org.freedesktop.Hal" due to security policies in the configuration
file


What are the permissions of your cd drives ?

brw-rw----  1 root cdrom 3, 0 2005-01-25 13:27 /dev/hda
brw-rw----  1 root cdrom 22, 0 2005-01-25 13:27 /dev/hdc

And I'm a member of cdrom group:
[EMAIL PROTECTED] /home/jean-luc # groups jean-luc
jean-luc : jean-luc adm dialout cdrom audio src video staff plugdev
scanner


Also you can use ``strace -e ioctl,open,close -p $(pidof hald)'' to strace your running hald.. Probably it will show permission denied or somthing like that.

Yes, right

[EMAIL PROTECTED] /home/jean-luc # strace -e ioctl,open,close -p
19238
Process 19238 attached - interrupt to quit
open("/dev/hda", O_RDONLY|O_NONBLOCK|O_EXCL|O_LARGEFILE) = -1 EACCES
(Permission denied)
open("/dev/hdc", O_RDONLY|O_NONBLOCK|O_EXCL|O_LARGEFILE) = 3
ioctl(3, CDROM_DRIVE_STATUS, 0x7fffffff) = 1
close(3)                                = 0
open("/dev/sdc", O_RDONLY|O_LARGEFILE)  = -1 ENOMEDIUM (No medium
found)
open("/dev/hda", O_RDONLY|O_NONBLOCK|O_EXCL|O_LARGEFILE) = -1 EACCES
(Permission denied)
open("/dev/hdc", O_RDONLY|O_NONBLOCK|O_EXCL|O_LARGEFILE) = 3
ioctl(3, CDROM_DRIVE_STATUS, 0x7fffffff) = 1

But it is not the case with the previous version of hal...


open("/etc/hal/property.d", O_RDONLY|O_NONBLOCK|O_LARGEFILE| O_DIRECTORY) = 3 close(3) = 0 open("/sys/block/hda/size", O_RDONLY) = 3 close(3) = 0 open("/dev/hda", O_RDONLY|O_LARGEFILE) = 3 ioctl(3, BLKSSZGET, 0xbffff81c) = 0 ioctl(3, BLKGETSIZE64, 0xbffff810) = 0 close(3) = 0 open("/dev/hda", O_RDONLY|O_NONBLOCK|O_LARGEFILE) = 3 ioctl(3, CDROM_DRIVE_STATUS, 0x7fffffff) = 4 ioctl(3, CDROM_DISC_STATUS, 0x7fffffff) = 101 ioctl(3, SG_IO, 0x8398180) = 0 ioctl(3, SG_IO, 0x8398180) = 0 ioctl(3, SG_IO, 0x8398180) = 0 close(3) = 0 open("/dev/hda", O_RDONLY|O_LARGEFILE) = 3 open("/usr/share/hal/fdi", O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY) = 4 close(4) = 0 open("/usr/share/hal/fdi/10generic", O_RDONLY|O_NONBLOCK|O_LARGEFILE| O_DIRECTORY) = 4 close(4) = 0 open("/usr/share/hal/fdi/20freedesktop", O_RDONLY|O_NONBLOCK| O_LARGEFILE|O_DIRECTORY) = 4 close(4) = 0 open("/usr/share/hal/fdi/20freedesktop/6in1-card-reader.fdi", O_RDONLY| O_LARGEFILE) = 4 close(4) = 0 open("/usr/share/hal/fdi/20freedesktop/ide-drives.fdi", O_RDONLY| O_LARGEFILE) = 4 close(4) = 0 open("/usr/share/hal/fdi/20freedesktop/jetflash-mp3-player.fdi", O_RDONLY|O_LARGEFILE) = 4 close(4) = 0 open("/usr/share/hal/fdi/20freedesktop/lexar-media-cf-reader.fdi", O_RDONLY|O_LARGEFILE) = 4 close(4) = 0 open("/usr/share/hal/fdi/20freedesktop/lucent-pcmcia-wireless.fdi", O_RDONLY|O_LARGEFILE) = 4 close(4) = 0 open("/usr/share/hal/fdi/20freedesktop/usb-zip-drives.fdi", O_RDONLY| O_LARGEFILE) = 4 close(4) = 0 open("/usr/share/hal/fdi/30osvendor", O_RDONLY|O_NONBLOCK|O_LARGEFILE| O_DIRECTORY) = 4 close(4) = 0 open("/usr/share/hal/fdi/40oem", O_RDONLY|O_NONBLOCK|O_LARGEFILE| O_DIRECTORY) = 4 close(4) = 0 open("/usr/share/hal/fdi/50user", O_RDONLY|O_NONBLOCK|O_LARGEFILE| O_DIRECTORY) = 4 close(4) = 0 open("/usr/share/hal/fdi/90defaultpolicy", O_RDONLY|O_NONBLOCK| O_LARGEFILE|O_DIRECTORY) = 4 close(4) = 0 open("/usr/share/hal/fdi/90defaultpolicy/storage-policy.fdi", O_RDONLY| O_LARGEFILE) = 4 close(4) = 0 open("/etc/hal/fdi", O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY) = 4 close(4) = 0 open("/etc/hal/fdi/preferences.fdi", O_RDONLY|O_LARGEFILE) = 4 close(4) = 0 open("/etc/hal/device.d", O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY) = 4 close(4) = 0

If this can helps, I remarked while doing my tests that fam is
something doing bad things. The drive is marked busy so I cannot eject
it nor unmount it without killing fam. But I don't know the exact
conditions this occured.



Sjoerd

Jean-Luc

Attachment: pgp2Wu4wNwpx6.pgp
Description: PGP signature



Reply via email to