From: Alasdair G Kergon <agk@redhat.com>
To: lvm-devel@redhat.com
Subject: [PATCH] let dmeventd unmount invalid snapshots (BZ 189462)
Date: Thu, 7 Oct 2010 20:23:23 +0100 [thread overview]
Message-ID: <20101007192323.GD22053@agk-dp.fab.redhat.com> (raw)
In-Reply-To: <877hhujgh8.fsf_-_@twilight.int.mornfall.net.>
On Thu, Oct 07, 2010 at 03:10:43PM +0200, Peter Rockai wrote:
> There are some trade-offs involved. I have opted for using an umount
> syscall directly since it's simpler and more robust. The downside is
> that /etc/mtab will go out of sync and people may actually think that
I'm not keen on leaving /etc/mtab out-of-date, or missing out anything
else that /bin/umount might actually do (with an errored-out device).
Would this patch need an update to the selinux context to allow umount?
> the snapshot is still mounted (mount(8) just prints mtab without
> thinking twice about it). We could just fork off umount(8) instead, but
> that can fail in new and interesting ways.
Yes, even if moved outside the locking. But even umount2() within
the lock might have deadlock possibilities, as might syslog() as
you point out.
The options/problems here need a bit more investigation.
> The other possible issue with the patch is that I am not sure whether
> it's actually safe to read /proc/mounts incrementally, with possibly
kabi found problems like that with another /proc file.
Alasdair
next prev parent reply other threads:[~2010-10-07 19:23 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-10-05 13:51 [PATCH] automatic snapshot extension with dmeventd (BZ 427298) Petr Rockai
2010-10-05 17:44 ` Petr Rockai
2010-10-07 13:10 ` [PATCH] let dmeventd unmount invalid snapshots (BZ 189462) Petr Rockai
2010-10-07 19:23 ` Alasdair G Kergon [this message]
2010-10-20 22:50 ` Petr Rockai
2010-10-29 11:49 ` Petr Rockai
2010-10-29 12:44 ` Petr Rockai
2010-10-29 13:34 ` Zdenek Kabelac
2010-10-14 9:51 ` [PATCH] automatic snapshot extension with dmeventd (BZ 427298) Zdenek Kabelac
2010-10-15 11:57 ` Petr Rockai
2010-10-15 12:55 ` Zdenek Kabelac
2010-10-15 14:15 ` Alasdair G Kergon
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=20101007192323.GD22053@agk-dp.fab.redhat.com \
--to=agk@redhat.com \
--cc=lvm-devel@redhat.com \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.