lkml.org 
[lkml]   [2003]   [Apr]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Fix SWSUSP & !SWAP
Andreas Dilger wrote:
>
> This "supersync" already exists, and it is supported by all of the
> journaling filesystems for LVM snapshots. This is the VFS method
> write_super_lockfs in the ext3/reiserfs/XFS/JFS super_operations.
> Not only does it sync the dirty data to disk, but it also forces
> the journal to be empty and marks the filesystem clean, so that it
> can be snapshotted and read-only mounted (basically equivalent to
> unmounting the filesystem).
>
> Unfortunately, even though the filesystems themselves have supported
> this VFS method for a long time, the actual code that calls these
> methods (sync_super_lockfs() and unlockfs()) are still only available
> as a patch from LVM. The LVM/reiserfs folks have talked about submitting
> it to Marcelo for a long time now, but apparently still haven't done so.
>

I really think this should be made available. Perhaps we should have a
sync1() system call which takes a flag set. Then we could have
sync1(SYNC_FLUSH_JOURNALS);

-hpa

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:35    [W:0.094 / U:1.704 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site