Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 20 Oct 2008 10:13:25 +0200
From:      Ian FREISLICH <ianf@clue.co.za>
Cc:        current@freebsd.org
Subject:   Re: PATCH: vinvalbuf(9), fusefs-kmod 
Message-ID:  <E1KrptF-0001Tx-EQ@clue.co.za>
In-Reply-To: <E1KrpmD-0001S4-NF@clue.co.za> 
References:  <E1KrpmD-0001S4-NF@clue.co.za>  

next in thread | previous in thread | raw e-mail | index | archive | help
This is a multipart MIME message.

--==_Exmh_1224490380_13100
Content-Type: text/plain; charset=us-ascii

"Ian Freislich" wrote:
> Hi
> 
> It appears that vinvalbuf() has changed, but the manual page has
> not been updated.  Also, after this change, sysutils/fusefs-kmod
> doesn't compile.  These patches address both issues.

FFS.  This list keeps on stripping attachments.

Ian

--
Ian Freislich


--==_Exmh_1224490380_13100
Content-Type: text/plain ; name="vinvalbuf.9.patch"; charset=us-ascii
Content-Description: vinvalbuf.9.patch
Content-Disposition: attachment; filename="vinvalbuf.9.patch"

Index: vinvalbuf.9
===================================================================
RCS file: /home/ncvs/src/share/man/man9/vinvalbuf.9,v
retrieving revision 1.8
diff -u -d -r1.8 vinvalbuf.9
--- vinvalbuf.9	28 Jun 2005 20:15:18 -0000	1.8
+++ vinvalbuf.9	20 Oct 2008 07:46:47 -0000
@@ -36,7 +36,7 @@
 .In sys/param.h
 .In sys/vnode.h
 .Ft int
-.Fn vinvalbuf "struct vnode *vp" "int flags" "struct ucred *cred" "struct thread *td" "int slpflag" "int slptimeo"
+.Fn vinvalbuf "struct vnode *vp" "int flags" "int slpflag" "int slptimeo"
 .Sh DESCRIPTION
 The
 .Fn vinvalbuf
@@ -56,14 +56,6 @@
 The only supported flag is
 .Dv V_SAVE
 and it indicates that dirty buffers should be synced with the disk.
-.It Fa cred
-The user credentials that are used to
-.Xr VOP_FSYNC 9
-buffers if
-.Dv V_SAVE
-is set.
-.It Fa td
-The thread responsible for this call.
 .It Fa slpflag
 The slp flag that will be used in the priority of any sleeps in the function.
 .It Fa slptimeo

--==_Exmh_1224490380_13100
Content-Type: text/plain ; name="fusefs-kmod.patch"; charset=us-ascii
Content-Description: fusefs-kmod.patch
Content-Disposition: attachment; filename="fusefs-kmod.patch"

Index: files/patch-fuse_module__fuse_vnops.c
===================================================================
RCS file: /home/ncvs/ports/sysutils/fusefs-kmod/files/patch-fuse_module__fuse_vnops.c,v
retrieving revision 1.1
diff -u -d -r1.1 patch-fuse_module__fuse_vnops.c
--- files/patch-fuse_module__fuse_vnops.c	26 Sep 2008 18:26:35 -0000	1.1
+++ files/patch-fuse_module__fuse_vnops.c	20 Oct 2008 08:03:53 -0000
@@ -1,5 +1,5 @@
---- fuse_module/fuse_vnops.c.orig	2008-09-26 13:08:03.000000000 -0400
-+++ fuse_module/fuse_vnops.c	2008-09-26 13:14:36.000000000 -0400
+--- fuse_module/fuse_vnops.c.orig	2008-02-05 07:25:57.000000000 +0200
++++ fuse_module/fuse_vnops.c	2008-10-20 10:02:22.000000000 +0200
 @@ -799,8 +799,11 @@
  	struct vnode *vp = ap->a_vp;
  	struct vattr *vap = ap->a_vap;
@@ -26,6 +26,15 @@
  			if (err)
  				return (err);
  			facp->facc_flags |= FACCESS_VA_VALID;
+@@ -1929,7 +1936,7 @@
+ 		 * It will not invalidate pages which are dirty, locked, under
+ 		 * writeback or mapped into pagetables.") 
+ 		 */
+-		err = vinvalbuf(vp, 0, td, PCATCH, 0);
++		err = vinvalbuf(vp, 0, PCATCH, 0);
+ 		fufh->flags |= FOPEN_KEEP_CACHE;
+ 	}
+ 
 @@ -3005,8 +3012,11 @@
  	struct vattr *vap = ap->a_vap;
  	struct vnode *vp = ap->a_vp;

--==_Exmh_1224490380_13100--






Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?E1KrptF-0001Tx-EQ>