svn commit: r206666 - head/sbin/geom/misc
Pawel Jakub Dawidek
pjd at FreeBSD.org
Thu Apr 15 16:35:35 UTC 2010
Author: pjd
Date: Thu Apr 15 16:35:34 2010
New Revision: 206666
URL: http://svn.freebsd.org/changeset/base/206666
Log:
Flush disk write cache after storing and clearing metadata.
Modified:
head/sbin/geom/misc/subr.c
Modified: head/sbin/geom/misc/subr.c
==============================================================================
--- head/sbin/geom/misc/subr.c Thu Apr 15 16:34:06 2010 (r206665)
+++ head/sbin/geom/misc/subr.c Thu Apr 15 16:35:34 2010 (r206666)
@@ -236,6 +236,7 @@ g_metadata_store(const char *name, u_cha
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
error = errno;
goto out;
}
+ (void)ioctl(fd, DIOCGFLUSH, NULL);
out:
if (sector != NULL)
free(sector);
More information about the svn-src-all
mailing list