summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog6
-rw-r--r--support/nfs/rmtab.c8
2 files changed, 13 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index d51ba6b..cbcab7d 100644
--- 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.
diff --git a/support/nfs/rmtab.c b/support/nfs/rmtab.c
index da40e48..b7be6ba 100644
--- a/support/nfs/rmtab.c
+++ b/support/nfs/rmtab.c
@@ -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