Date: Wed, 27 Jul 2011 12:04:58 GMT From: Philipp Mergenthaler <freebsd@currno.de> To: freebsd-gnats-submit@FreeBSD.org Subject: ports/159230: [PATCH] fix sysutils/fusefs-kmod for the 64bit mount flags Message-ID: <201107271204.p6RC4wvZ008525@red.freebsd.org> Resent-Message-ID: <201107271210.p6RCA9uP037341@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 159230 >Category: ports >Synopsis: [PATCH] fix sysutils/fusefs-kmod for the 64bit mount flags >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Wed Jul 27 12:10:09 UTC 2011 >Closed-Date: >Last-Modified: >Originator: Philipp Mergenthaler >Release: current >Organization: >Environment: FreeBSD pemptos.localdomain 9.0-BETA1 FreeBSD 9.0-BETA1 #25: Tue Jul 26 19:36:03 CEST 2011 p@pemptos.localdomain:/usr/obj/usr/src/sys/PEMPTOS i386 >Description: The mnt_flag field was recently changed from 32 bits to 64, see src/sys/kern/vfs_mount.c date: 2011/07/24 17:43:09; author: mckusick; state: Exp; lines: +2 -1 SVN rev 224290 on 2011-07-24 17:43:09Z by mckusick This broke building sysutils/fusefs_kmod, which calls vfs_flagopt(). >How-To-Repeat: Build ports/sysutils/fusefs_kmod. >Fix: The attached patch changes the the type of two variables in fusefs-kmod from int to uint64_t, analogously to the change in the kernel source. The patch can be put into ports/sysutils/fusefs_kmod/files as file on its own or included into the existing patch-fuse_module__fuse_vfsops.c. A few quick tests showed no problems or changes in functionality. Patch attached with submission follows: --- fuse_module/fuse_vfsops.c 2008-02-05 06:25:57.000000000 +0100 +++ fuse_module/fuse_vfsops.c.new 2011-07-27 12:42:48.000000000 +0200 @@ -224,7 +224,8 @@ struct cdev *fdev; struct sx *slock; struct fuse_data *data; - int mntopts = 0, __mntopts = 0, max_read_set = 0, secondary = 0; + uint64_t mntopts = 0, __mntopts = 0; + int max_read_set = 0, secondary = 0; unsigned max_read = ~0; struct vnode *rvp; struct fuse_vnode_data *fvdat; >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201107271204.p6RC4wvZ008525>