From: neilbrown Date: Mon, 8 Apr 2002 23:05:29 +0000 (+0000) Subject: See Change Log X-Git-Tag: nfs-utils-1-0-1-pre5^0 X-Git-Url: https://git.decadent.org.uk/gitweb/?p=nfs-utils.git;a=commitdiff_plain;h=ba4a2465e10c1373c910d81606ca61f4fc87d90f;hp=a1c827e358e11fcf27e223ed45a54f6d328e78bc See Change Log --- diff --git a/ChangeLog b/ChangeLog index d51ba6b..cbcab7d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2002-04-09 NeilBrown + James Pearson + + * support/nfs/rmtab.c(fendrmtabent): sync changes to + storage before returning, as this is critical state + 2002-04-08 H.J. Lu * 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