From f41991c6624d5c51b71d7c3a18f58a220fe4e892 Mon Sep 17 00:00:00 2001 From: Carsten Haitzler Date: Wed, 18 Mar 2009 01:47:33 +0000 Subject: [PATCH] disable fsync SVN revision: 39542 --- legacy/eet/src/lib/eet_lib.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/legacy/eet/src/lib/eet_lib.c b/legacy/eet/src/lib/eet_lib.c index a01f983f05..fab8f6f605 100644 --- a/legacy/eet/src/lib/eet_lib.c +++ b/legacy/eet/src/lib/eet_lib.c @@ -557,7 +557,14 @@ eet_flush2(Eet_File *ef) /* flush all write to the file. */ fflush(ef->fp); - fsync(fileno(ef->fp)); +// this is going to really cause trouble. if ANYTHING this needs to go into a +// thread spawned off - but even then... +// in this case... ext4 is "wrong". (yes we can jump up and down and point posix +// manual pages at eachother, but ext4 broke behavior that has been in place +// for decades and that 1000's of apps rely on daily - that is that one operation +// to disk is committed to disk BEFORE following operations, so the fs retains +// a consistent state +// fsync(fileno(ef->fp)); /* append signature if required */ if (ef->key)