]> git.decadent.org.uk Git - nfs-utils.git/commitdiff
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 d51ba6bb95d0632c53c96eb4768ccc1d9405c15c..cbcab7df807adcd63419d334bfd50ddb61ced947 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.
 2002-04-08  H.J. Lu <hjl@lucon.org>
 
        * etc/redhat/nfs: New.
index da40e486a052e45de082bf8dd654cbefd2e6bcc1..b7be6ba6b0a86ae7353872d30c907026be27f0a6 100644 (file)
@@ -114,8 +114,14 @@ endrmtabent(void)
 void
 fendrmtabent(FILE *fp)
 {
 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);
                fclose(fp);
+       }
 }
 
 void
 }
 
 void