Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 5 Dec 2009 20:36:42 +0000 (UTC)
From:      Konstantin Belousov <kib@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r200162 - head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs
Message-ID:  <200912052036.nB5Kaghv099369@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: kib
Date: Sat Dec  5 20:36:42 2009
New Revision: 200162
URL: http://svn.freebsd.org/changeset/base/200162

Log:
  Change VOP_FSYNC for zfs vnode from VOP_PANIC to zfs_freebsd_fsync(),
  both to not panic when fsync(2) is called for fifo on zfs
  filedescriptor, and to actually fsync fifo inode to permanent storage.
  
  PR:	kern/141177
  Reviewed by:	pjd
  MFC after:	1 week

Modified:
  head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_vnops.c

Modified: head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_vnops.c
==============================================================================
--- head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_vnops.c	Sat Dec  5 20:26:55 2009	(r200161)
+++ head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_vnops.c	Sat Dec  5 20:36:42 2009	(r200162)
@@ -5009,7 +5009,7 @@ struct vop_vector zfs_vnodeops = {
 
 struct vop_vector zfs_fifoops = {
 	.vop_default =		&fifo_specops,
-	.vop_fsync =		VOP_PANIC,
+	.vop_fsync =		zfs_freebsd_fsync,
 	.vop_access =		zfs_freebsd_access,
 	.vop_getattr =		zfs_freebsd_getattr,
 	.vop_inactive =		zfs_freebsd_inactive,



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200912052036.nB5Kaghv099369>