aboutsummaryrefslogtreecommitdiffstats
path: root/sbin/geom/misc
diff options
context:
space:
mode:
authorPawel Jakub Dawidek <pjd@FreeBSD.org>2010-04-15 16:35:34 +0000
committerPawel Jakub Dawidek <pjd@FreeBSD.org>2010-04-15 16:35:34 +0000
commit54ddff9dfa43eafbbb9b99bd6e9f612d6fea6908 (patch)
tree2f0d565f28a426e8da08d2b45a538ceb8d0250ab /sbin/geom/misc
parent31c4cef715a139f573d9fc3da1c93c63308f5426 (diff)
downloadsrc-54ddff9dfa43eafbbb9b99bd6e9f612d6fea6908.tar.gz
src-54ddff9dfa43eafbbb9b99bd6e9f612d6fea6908.zip
Flush disk write cache after storing and clearing metadata.
Notes
Notes: svn path=/head/; revision=206666
Diffstat (limited to 'sbin/geom/misc')
-rw-r--r--sbin/geom/misc/subr.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sbin/geom/misc/subr.c b/sbin/geom/misc/subr.c
index 64df7c6845ed..21deac8bf52e 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);