Re: Automatically mount or remount EXT3 partitions with EXT2 when alaptop is powered by a battery?

Stephen Tweedie
2002-07-04T21:27:32Z

Hi,

On Wed, Jul 03, 2002 at 05:04:48AM +0200, Pavel Machek <pavel@ucw.cz> wrote:

> > an fsync() on any file or directory on the filesystem will ensure that
> > all old transactions have completed, and a sync() will ensure that any
> > old transactions are at least on their way to disk.
>
> Ugh, does that mean that if I
>
> "sync ; poweroff"
>
> my data are not safe?

Right --- sync only guarantees that the writes have started; you're
not safe until the disk light is off.

The VFS kernel core syncs each filesystem sequentially during sync and
bdflush. If we do each one synchronously, we end up serialising IO
and performance with multiple disks goes _way_ down. However, you can
choose synchronous completion of ext3_write_super() by giving modular
ext3 the module option "do_sync_supers=1".

--Stephen