Call 'flush' after writing a superblock to disk.

Just in case...

Signed-off-by: Neil Brown <neilb@cse.unsw.edu.au>
This commit is contained in:
Neil Brown 2005-04-04 06:05:07 +00:00
parent d7eaf49f65
commit b2b46bfc89
2 changed files with 3 additions and 1 deletions

View File

@ -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

1
util.c
View File

@ -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;
}