#3150: BFS directory corruption.
--------------------------------+------------------------------------
Reporter: bga | Owner: axeld
Type: bug | Status: new
Priority: blocker | Milestone: R1
Component: File Systems/BFS | Version: R1/Development
Resolution: | Keywords:
Blocked By: | Blocking: 3932, 4011, 8712, 9761
Has a Patch: 0 | Platform: x86
--------------------------------+------------------------------------
Comment (by philcostin):
I wasn't very coherent above -
It sounds like cb88 is onto the right track, and that's sort of what I was
trying to suggest by mentioning F_FULLFSYNC, which is a flag on Mac OS X's
fsync() to instruct the disk to write out its cash before spin down.
Assuming that Haiku's fsync already does this on umount, the next question
is, does the disk always have the time to unmount (and thus call fsync,
including writing out the cache) on system restart / shutdown - if not, it
could be that, too. I seem to remember though, the shutdown process was
reworked so maybe it already does synchronize correctly at that point and
it's just the write cache not being told to flush to disk.
--
Ticket URL: <https://dev.haiku-os.org/ticket/3150#comment:56>
Haiku <https://dev.haiku-os.org>
The Haiku operating system.