From ba4a2465e10c1373c910d81606ca61f4fc87d90f Mon Sep 17 00:00:00 2001 From: neilbrown Date: Mon, 8 Apr 2002 23:05:29 +0000 Subject: [PATCH] See Change Log --- ChangeLog | 6 ++++++ support/nfs/rmtab.c | 8 +++++++- 2 files changed, 13 insertions(+), 1 deletion(-) 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 -- 2.39.5