diff options
author | pjd <pjd@FreeBSD.org> | 2010-04-15 16:35:34 +0000 |
---|---|---|
committer | pjd <pjd@FreeBSD.org> | 2010-04-15 16:35:34 +0000 |
commit | 0d94bcf27936994095a2c63d1d9b267765637ca6 (patch) | |
tree | 2f0d565f28a426e8da08d2b45a538ceb8d0250ab /sbin | |
parent | 1e56ad0204a47f5efcdf93ba6846ce1a86ef0a61 (diff) | |
download | FreeBSD-src-0d94bcf27936994095a2c63d1d9b267765637ca6.zip FreeBSD-src-0d94bcf27936994095a2c63d1d9b267765637ca6.tar.gz |
Flush disk write cache after storing and clearing metadata.
Diffstat (limited to 'sbin')
-rw-r--r-- | sbin/geom/misc/subr.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sbin/geom/misc/subr.c b/sbin/geom/misc/subr.c index 64df7c6..21deac8 100644 --- a/sbin/geom/misc/subr.c +++ b/sbin/geom/misc/subr.c @@ -236,6 +236,7 @@ g_metadata_store(const char *name, u_char *md, size_t size) error = errno; goto out; } + (void)ioctl(fd, DIOCGFLUSH, NULL); out: if (sector != NULL) free(sector); @@ -293,6 +294,7 @@ g_metadata_clear(const char *name, const char *magic) error = errno; goto out; } + (void)ioctl(fd, DIOCGFLUSH, NULL); out: if (sector != NULL) free(sector); |