On Thu, 2003-07-31 at 10:54, Juri Haberland wrote:
> Klaus Strebel wrote:
> > Blair Barnett wrote:
> >> I have a simple shell script that writes numbers to a file and every 10
> >> numbers does a sync and after 40 does a reboot. I've attached the script
> >> to this email.
> >> If the file is written to an EXT3 filesystem, then file contains the
> >> numbers 1-40. However, if the file is written to an XFS 1.1,1.2, or 1.3
> >> filesystem, then file contains the numbers 1-10.
> What buffles me a bit is that he does a "reboot -f" and, according to the
> man page on my RedHat 7.3 system, reboot should sync the filesystems
> prior to reboot. If he'd done a "reboot -fn" (-n = don't sync) then I'd
> expect this, though.
It is even worse. He does sync after write of every 10 numbers.
So after writing 40 he does sync (!) and afterward he reboots.
So after next booting he should see this "40", and it shouldn't be
dependent if it does sync on reboot or not.