hal interferes with umount autofs using SIGUSR1
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
autofs (Ubuntu) |
Invalid
|
Undecided
|
Unassigned | ||
hal (Debian) |
Fix Released
|
Unknown
|
|||
hal (Ubuntu) |
Fix Released
|
Low
|
Unassigned |
Bug Description
The automount process is supposed to unmount all mounted filesystems when it receives a SIGUSR1. I use this extensively to unmount things like usb-sticks. On a fresh dapper system with the xubuntu desktop, this doesn't work:
- the automount daemon DOES unmount the filesystem, as can be seen by doing a 'mount' command right after the kill command
- some other process (?) then accesses the filesystem that was just unmounted
- automount notices this and immediately remounts the filesystem
Effectively, within 0.5-1 second all unmounted filesystems are remounted again. This seems to always occur with nfs mounted filesystems, but It also regularly happens with usb sticks and other removable media. (but not 100% reliably).
On a debian unstable system I saw the same thing happening, there it was due to the hald trying to access the filesystem once it was unmounted. I have tried to stop the hald and reproduce the bug - no visible changes in behaviour. The bug also occurs from a text console right after a fresh reboot, so it appears that it is not due to KDE or GNOME services (or XFCE in my case). I have tried shutting down as many system daemons as possible, but could not locate the culprit.
I realize this bug is likely not the fault of the autofs package, but it is related and very annoying. It would be nice if it could be investigated, as it renders the autofs package nearly useless for removable media.
Changed in hal: | |
status: | Unknown → Fix Released |
It appears that hal is the culprit after all: after stopping the dbus service completely using /etc/init.d/dbus stop, the problem has gone away. This means that this report is probably not for autofs but for the hal package, and it could confirm bug 55223.