2005-03-12 12:11:38

by Junfeng Yang

[permalink] [raw]
Subject: [CHECKER] sync, fsync and mount -o sync all not flush things out properly (hfsplus, 2.6.11)


Hi,

We developed a file system checker called FiSC and recently applied it to
hfsplus. It complains 3 things about hfsplus:

1. sync on hfsplus doesn't actually flush everything out. Immediate crash
after sync still causes data-loss (testcase:
http://fisc.stanford.edu/bug13/crash.c)

2. fsync on hfsplus doesn't actually flush out the file.
(http://fisc.stanford.edu/bug14/crash.c)

3. mount -o sync doesn't cause file system operations to be synchronous.
(http://fisc.stanford.edu/bug15/crash.c)

To reproduce these warnings, download the test case and run it. You might
need to customize the test case according to your local settings. Let me
know if you need any more information to reproduce the warnings.

Any confirmations/clarifications are appreciated.
-Junfeng