On Monday 30 April 2012 16:03:39 Phillip Susi wrote: > On 4/17/2012 4:03 AM, Thomas Orgis wrote: > > I am having an issue with a loop device that used to be connected to a > > file on NFS. Not sure if this is actually a kernel bug, but I assume > > (perhaps ignorantly so) that losetup could resolve the situation > > anyways. > > > > 0. have NFS share on /mnt/nfs (rw,users,noexec,nosuid,nodev,hard,intr) > > 1. losetup --show -f /mnt/nfs/file.img > > > > /dev/loop0 > > > > # actually, it was using cryptsetup luksOpen/Close > > 2. mount /dev/loop0&& do_work&& umount /dev/loop0 > > 3. loose connection to NFS server (it went offline, client machine > > (laptop) switched networks ...) 4. umount -l /mnt/nfs > > This is the problem with umount -l: all it does is remove the path from > the namespace, leaving the device still mounted. Unfortunately umount > -f is not properly supported. The proper fix for this is to have the > kernel support umount -f, and do away with the brain damaged umount -l. `umount -l` has its place -- there are cases where you want those semantics. granted, most people actually want a `umount -f`, but the two aren't mutually exclusive. -mike
Attachment:
signature.asc
Description: This is a digitally signed message part.