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

Pavel Machek
2002-07-06T18:26:51Z

Hi!

> > > 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.
> >
> > With emphasis on 'on the filesystem', I suppose? In other words, if we
> > have an ext3 fs on /dev/hda1 mounted on /mnt, it is not sufficient to
> > fsync("/dev/hda1") to flush the transactions, but fsync("/mnt") will do?
> > (Excuse the sloppy notation.)
>
> Right.

So... If I do fsync("/"), will it flush everything? Probably not.

Is there some easy way to sync everything to disk and wait for
completion? [On suspend-to-something I'd llike to do that for
additional safety.
Pavel
--
Worst form of spam? Adding advertisment signatures ala sourceforge.net.
What goes next? Inserting advertisment *into* email?