[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Bug#477498: general: Unmounting network filesystems solution (for me at least)

On Mon, Oct 20, 2008 at 09:57:24AM +0200, Petter Reinholdtsen wrote:
> Sound to me like the cifs startup script need to register their pid to
> avoid killall killing them at shutdown.  The mechanism is already
> provided by initscripts, now the packages needing it just need to use
> it.

> Which package starts this daemon?  This issue should be reassigned
> there.

Er, there's no such daemon.

> Another alternative is to flag the mounted volume in /etc/fstab using
> the _netdev flag, to make sure the volume is umounted by umountnfs.sh
> and not umountfs.sh during shutdown.

$ grep cifs /etc/init.d/umountnfs.sh 

umountnfs.sh already knows that cifs is a network filesystem.  And having to
add a flag to /etc/fstab would be the wrong solution, /because/ cifs is
always a network filesystem and umountnfs.sh should handle it.

But in some circumstances, it happens that the network interface is taken
down before umountnfs.sh is called.  This is the case when using NM 0.6 to
manage your interface (and possibly with later versions, I haven't checked).
CIFS doesn't like having the network pulled out from under it, leaving these
long timeouts.

Steve Langasek                   Give me a lever long enough and a Free OS
Debian Developer                   to set it on, and I can move the world.
Ubuntu Developer                                    http://www.debian.org/
slangasek@ubuntu.com                                     vorlon@debian.org

Reply to: