See Change Log nfs-utils-1-0-1-pre5
authorneilbrown <neilbrown>
Mon, 8 Apr 2002 23:05:29 +0000 (23:05 +0000)
committerneilbrown <neilbrown>
Mon, 8 Apr 2002 23:05:29 +0000 (23:05 +0000)
ChangeLog
support/nfs/rmtab.c

index d51ba6b..cbcab7d 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2002-04-09  NeilBrown <neilb@cse.unsw.edu.au>
+       James Pearson <james-p@moving-picture.com>
+
+       * support/nfs/rmtab.c(fendrmtabent): sync changes to 
+       storage before returning, as this is critical state
+
 2002-04-08  H.J. Lu <hjl@lucon.org>
 
        * etc/redhat/nfs: New.
index da40e48..b7be6ba 100644 (file)
@@ -114,8 +114,14 @@ endrmtabent(void)
 void
 fendrmtabent(FILE *fp)
 {
-       if (fp)
+       if (fp) {
+               /* If it was written to, we really want
+                * to flush to disk before returning
+                */
+               fflush(fp);
+               fdatasync(fileno(fp));
                fclose(fp);
+       }
 }
 
 void