diff options
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | support/nfs/rmtab.c | 8 |
2 files changed, 13 insertions, 1 deletions
@@ -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 |