diff options
author | Neil Brown <neilb@suse.de> | 2005-04-04 08:05:07 +0200 |
---|---|---|
committer | Neil Brown <neilb@suse.de> | 2005-04-04 08:05:07 +0200 |
commit | b2b46bfc89772da0c9c0249dd185d38b558f2c3a (patch) | |
tree | b3f28847a3cfb0b4049c06705663243d7e0148d8 | |
parent | Use O_EXCL when opening component devices to be assembled into an array (diff) | |
download | mdadm-b2b46bfc89772da0c9c0249dd185d38b558f2c3a.tar.xz mdadm-b2b46bfc89772da0c9c0249dd185d38b558f2c3a.zip |
Call 'flush' after writing a superblock to disk.
Just in case...
Signed-off-by: Neil Brown <neilb@cse.unsw.edu.au>
-rw-r--r-- | ChangeLog | 3 | ||||
-rw-r--r-- | util.c | 1 |
2 files changed, 3 insertions, 1 deletions
@@ -1,7 +1,8 @@ Changes Prior to 1.10.0 release - Fix bug with --config=partitions - Open sub-devices with O_EXCL to detect if already in use - + - Make sure superblock updates are flushed directly to disk. + Changes Prior to 1.9.0 release - Fix rpm build problem (stray %) - Minor manpage updates @@ -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; } |