Re: fusefs-kmod broken?

From: Ian FREISLICH <ianf_at_clue.co.za>
Date: Mon, 23 Aug 2010 16:57:40 +0200
Ian FREISLICH wrote:
> So, in this case is the fusefs module broken?  I'm guessing it is.
> I don't like the way fuse_fileops is initialised in fuse4bsd.  I
> would prefer for the struct to be zeroed and then the fo_xxx
> implimented bits set as appropriate.  That way when the struct is
> changed, you don't get stung again.

I am an idiot - that will have no effect.  This patch needs to be
included in sysutils/fusefs-kmod/files

-- 
Ian Freislich

patch-fuse_module__fuse_main.c
--- fuse_module/fuse_main.c.orig	2010-08-23 16:52:20.000000000 +0200
+++ fuse_module/fuse_main.c	2010-08-23 16:48:17.000000000 +0200
_at__at_ -108,6 +108,7 _at__at_
 	switch (what) {
 	case MOD_LOAD:                /* kldload */
 
+		fuse_fileops.fo_truncate = vnops.fo_truncate;
 		fuse_fileops.fo_ioctl    = vnops.fo_ioctl;
 		fuse_fileops.fo_poll     = vnops.fo_poll;
 		fuse_fileops.fo_kqfilter = vnops.fo_kqfilter;
Received on Mon Aug 23 2010 - 12:57:46 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:06 UTC