Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. =================================================================== RCS file: /ftp/cvs/cvsroot/src/sys/ufs/ffs/ffs_vnops.c,v rcsdiff: /ftp/cvs/cvsroot/src/sys/ufs/ffs/ffs_vnops.c,v: warning: Unknown phrases like `commitid ...;' are present. retrieving revision 1.70 retrieving revision 1.71 diff -u -p -r1.70 -r1.71 --- src/sys/ufs/ffs/ffs_vnops.c 2005/07/15 05:01:16 1.70 +++ src/sys/ufs/ffs/ffs_vnops.c 2005/07/21 22:00:08 1.71 @@ -1,4 +1,4 @@ -/* $NetBSD: ffs_vnops.c,v 1.70 2005/07/15 05:01:16 thorpej Exp $ */ +/* $NetBSD: ffs_vnops.c,v 1.71 2005/07/21 22:00:08 yamt Exp $ */ /* * Copyright (c) 1982, 1986, 1989, 1993 @@ -32,7 +32,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: ffs_vnops.c,v 1.70 2005/07/15 05:01:16 thorpej Exp $"); +__KERNEL_RCSID(0, "$NetBSD: ffs_vnops.c,v 1.71 2005/07/21 22:00:08 yamt Exp $"); #include #include @@ -360,7 +360,7 @@ ffs_full_fsync(void *v) * Flush all dirty data associated with a vnode. */ - if (vp->v_type == VREG) { + if (vp->v_type == VREG || vp->v_type == VBLK || vp->v_type == VCHR) { simple_lock(&vp->v_interlock); error = VOP_PUTPAGES(vp, 0, 0, PGO_ALLPAGES | PGO_CLEANIT | ((ap->a_flags & FSYNC_WAIT) ? PGO_SYNCIO : 0));