vfs_commit: print warning when no fsync support is there
authorBjörn Jacke <bj@sernet.de>
Sun, 13 Dec 2009 20:56:28 +0000 (21:56 +0100)
committerBjörn Jacke <bj@sernet.de>
Wed, 6 Jan 2010 17:28:16 +0000 (18:28 +0100)
this one was part of an old patch from jpeach.

source3/modules/vfs_commit.c

index 1d099494e935d8bfd6efcc873540330898d3b81f..cade1170bab445801c31959937710f6e385821c6 100644 (file)
@@ -88,6 +88,8 @@ static int commit_do(
 #elif HAVE_FSYNC
         result = fsync(fd);
 #else
+       DEBUG(0, ("%s: WARNING: no commit support on this platform\n",
+               MODULE));
        result = 0
 #endif
         if (result == 0) {