From 23ba900fc7d38186b42944ebe2c90d8105dfd3de Mon Sep 17 00:00:00 2001 From: Artur Grabowski Date: Tue, 3 Aug 2004 13:34:49 +0000 Subject: Print more diagnostics on fsync failure in sched_sync. --- sys/kern/vfs_sync.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'sys') 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 -- cgit v1.2.3