summaryrefslogtreecommitdiff
path: root/sys/kern
diff options
context:
space:
mode:
authorArtur Grabowski <art@cvs.openbsd.org>2004-08-03 13:34:49 +0000
committerArtur Grabowski <art@cvs.openbsd.org>2004-08-03 13:34:49 +0000
commit23ba900fc7d38186b42944ebe2c90d8105dfd3de (patch)
treedd6b7cf902edb497f528ecadba1a796b1eb67556 /sys/kern
parent247fd37eb30fa94cfb3943eb28a855337f2d88c7 (diff)
Print more diagnostics on fsync failure in sched_sync.
Diffstat (limited to 'sys/kern')
-rw-r--r--sys/kern/vfs_sync.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/sys/kern/vfs_sync.c b/sys/kern/vfs_sync.c
index d1bac27b90c..3c6e275a99d 100644
--- a/sys/kern/vfs_sync.c
+++ b/sys/kern/vfs_sync.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: vfs_sync.c,v 1.26 2004/06/21 23:50:36 tholo Exp $ */
+/* $OpenBSD: vfs_sync.c,v 1.27 2004/08/03 13:34:48 art Exp $ */
/*
* Portions of this code are:
@@ -179,8 +179,13 @@ sched_sync(p)
* slot we are safe.
*/
if (LIST_FIRST(&vp->v_dirtyblkhd) == NULL &&
- vp->v_type != VBLK)
+ vp->v_type != VBLK) {
+ vprint("fsync failed", vp);
+ if (vp->v_mount != NULL)
+ printf("mounted on: %s\n",
+ vp->v_mount->mnt_stat.f_mntonname);
panic("sched_sync: fsync failed");
+ }
/*
* Put us back on the worklist. The worklist
* routine will remove us from our current