aboutsummaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorDoug Ambrisko <ambrisko@FreeBSD.org>2008-11-13 17:40:21 +0000
committerDoug Ambrisko <ambrisko@FreeBSD.org>2008-11-13 17:40:21 +0000
commitf1c1cdbb9c90f21d757dd895583bc778970ee484 (patch)
treee87c66fa1eaa1af6b42fc96896d96806498e02ba /sys
parent0a15841568d99a4c7f980b12c95e3ca53760cc27 (diff)
Notes
Diffstat (limited to 'sys')
-rw-r--r--sys/ufs/ffs/ffs_snapshot.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/ufs/ffs/ffs_snapshot.c b/sys/ufs/ffs/ffs_snapshot.c
index bb39bd6eca1e..dff56edeb783 100644
--- a/sys/ufs/ffs/ffs_snapshot.c
+++ b/sys/ufs/ffs/ffs_snapshot.c
@@ -351,6 +351,8 @@ restart:
if (error)
goto out;
bawrite(nbp);
+ if (cg % 10 == 0)
+ ffs_syncvnode(vp, MNT_WAIT);
}
/*
* Copy all the cylinder group maps. Although the
@@ -372,6 +374,8 @@ restart:
goto out;
error = cgaccount(cg, vp, nbp, 1);
bawrite(nbp);
+ if (cg % 10 == 0)
+ ffs_syncvnode(vp, MNT_WAIT);
if (error)
goto out;
}