Re: losetup -d --force for zombie loop devices?

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

 



On Sat, Jan 12, 2013 at 12:29:28AM -0500, Mike Frysinger wrote:
> On Saturday 12 January 2013 00:13:12 Phillip Susi wrote:
> > On 01/11/2013 11:52 PM, Mike Frysinger wrote:
> > >> but my point was that what you are looking for is umount -f, not
> > >> umount -l.
> > > 
> > > and my point is that `umount -f` doesn't always work which means
> > > `umount -l` is sometimes the only way to remove a mount point.  an
> > > unresponsive remote or something is holding open a reference (which
> > > doesn't show up in `lsof -n`).
> > 
> > Right.  Forced unmounts aren't really implemented.  They need to be.
> > It isn't losetup that needs to be forcibly detached, but the filesystem.
> 
> would be nice if userland had visibility into all these handles that the 
> kernel has opened.  for example, with losetup, i think the only way is to 
> query the loop devices directly or sysfs ?  might be handy to at least teach 
> lsof to peek in there, but still sucks we have to do it subsystem by 
> subsystem.

 That's my wish to have in lsblk output a column with handlers counter
 that kernel has open for the device. Unfortunately this info is not
 exported by sysfs.

    Karel


-- 
 Karel Zak  <kzak@xxxxxxxxxx>
 http://karelzak.blogspot.com
--
To unsubscribe from this list: send the line "unsubscribe util-linux" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux