[lkml]   [2007]   [Jun]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: ext3fs: umount+sync not enough to guarantee metadata-on-disk

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.


To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

 \ /
  Last update: 2007-06-07 19:13    [W:0.083 / U:0.072 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site