From b2b46bfc89772da0c9c0249dd185d38b558f2c3a Mon Sep 17 00:00:00 2001 From: Neil Brown Date: Mon, 4 Apr 2005 06:05:07 +0000 Subject: Call 'flush' after writing a superblock to disk. Just in case... Signed-off-by: Neil Brown --- util.c | 1 + 1 file changed, 1 insertion(+) (limited to 'util.c') diff --git a/util.c b/util.c index 05eb9c9..d5e2910 100644 --- a/util.c +++ b/util.c @@ -278,6 +278,7 @@ int store_super(int fd, mdp_super_t *super) if (write(fd, super, sizeof(*super)) != sizeof(*super)) return 4; + fsync(fd); return 0; } -- cgit