mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "Stephen C. Tweedie" <sct@redhat.com>
To: Mark Lord <lkml@rtr.ca>
Cc: Andrew Morton <akpm@linux-foundation.org>,
	"Theodore Ts'o" <tytso@mit.edu>,
	linux-kernel <linux-kernel@vger.kernel.org>,
	Stephen Tweedie <sct@redhat.com>
Subject: Re: ext3fs: umount+sync not enough to guarantee metadata-on-disk
Date: Thu, 07 Jun 2007 18:09:41 +0100	[thread overview]
Message-ID: <1181236181.10245.16.camel@sisko.scot.redhat.com> (raw)
In-Reply-To: <46682BE7.6080802@rtr.ca>

Hi,

On Thu, 2007-06-07 at 12:01 -0400, Mark Lord wrote:

> >>    mount /var/lib/mythtv -oremount,ro
> >>    sync
> >>    umount /var/lib/mythtv
> > 
> > Did this succeed?  If the application is still truncating that file, the
> > umount should have failed.
> 
> Actually, what I expect to happen is for the remount,ro
> to block  until the file deletion completes.  But it doesn't.

No -- all that the remount,ro sees is that there's a fd still open for
write.  It has no idea if or when that fd is going to get closed, so it
should fail.  Returning -EBUSY is the only thing it _can_ do: waiting
for the fs to be remountable might wait forever.

So the fs is still writable after that point.

--Stephen



  reply	other threads:[~2007-06-07 17:10 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-06-07 13:44 Mark Lord
2007-06-07 15:41 ` Andrew Morton
2007-06-07 16:01   ` Mark Lord
2007-06-07 17:09     ` Stephen C. Tweedie [this message]
2007-06-10 18:27     ` Pavel Machek
2007-06-12 15:15       ` Stephen C. Tweedie
2007-06-14 19:01       ` Phillip Susi
2007-06-07 16:11   ` Chuck Ebbert
2007-06-07 19:45     ` Andrew Morton
2007-06-07 21:38       ` Mark Lord
2007-06-07 22:04         ` Andrew Morton
2007-06-08 14:51           ` Mark Lord
2007-06-09  2:58       ` Mark Lord
2007-06-11 11:14         ` Jan Kara
2007-06-11 22:47           ` Mark Lord
2007-06-12 10:00             ` Jan Kara
2007-06-07 21:43     ` Mark Lord
2007-06-10 18:31       ` Pavel Machek
2007-06-11 11:05       ` Jan Kara
2007-06-11 22:46         ` Mark Lord

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=1181236181.10245.16.camel@sisko.scot.redhat.com \
    --to=sct@redhat.com \
    --cc=akpm@linux-foundation.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=lkml@rtr.ca \
    --cc=tytso@mit.edu \
    /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

all inboxes | Powered by JetHome®