From: Karel Zak <kzak@redhat.com>
To: Mike Frysinger <vapier@gentoo.org>
Cc: Phillip Susi <psusi@ubuntu.com>,
Thomas Orgis <thomas-forum@orgis.org>,
util-linux@vger.kernel.org
Subject: Re: losetup -d --force for zombie loop devices?
Date: Mon, 14 Jan 2013 09:35:13 +0100 [thread overview]
Message-ID: <20130114083513.GB16421@x2.net.home> (raw)
In-Reply-To: <201301120029.29896.vapier@gentoo.org>
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@redhat.com>
http://karelzak.blogspot.com
prev parent reply other threads:[~2013-01-14 8:35 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-04-17 8:03 losetup -d --force for zombie loop devices? Thomas Orgis
2012-04-17 14:58 ` Mike Frysinger
2012-04-17 21:02 ` Thomas Orgis
2012-04-30 20:03 ` Phillip Susi
2012-04-30 20:07 ` Mike Frysinger
2012-05-01 15:23 ` Phillip Susi
2012-05-03 4:43 ` Mike Frysinger
2012-05-03 14:29 ` Phillip Susi
2013-01-11 23:52 ` Mike Frysinger
2013-01-12 0:54 ` Phillip Susi
2013-01-12 4:52 ` Mike Frysinger
2013-01-12 5:13 ` Phillip Susi
2013-01-12 5:29 ` Mike Frysinger
2013-01-14 8:35 ` Karel Zak [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20130114083513.GB16421@x2.net.home \
--to=kzak@redhat.com \
--cc=psusi@ubuntu.com \
--cc=thomas-forum@orgis.org \
--cc=util-linux@vger.kernel.org \
--cc=vapier@gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox