summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBeat Gaetzi <beat@FreeBSD.org>2010-10-14 11:44:10 +0000
committerBeat Gaetzi <beat@FreeBSD.org>2010-10-14 11:44:10 +0000
commit3b4a59d3666ec1befd09417943f5d0805816e4d1 (patch)
tree8db2f60d8a25c91b0af51c0774e650120c9403ec
parentUpdate to 1.0.r1514 (diff)
- Fix panic on FreeBSD 8.x and newer
- Bump PORTREVISION PR: ports/149674 Submitted by: Dmitrij Tejblum <dt AT yandex.ru> Approved by: Anish Mistry <amistry AT am-productions.biz> (maintainer)
Notes
Notes: svn path=/head/; revision=262996
-rw-r--r--sysutils/fusefs-kmod/Makefile2
-rw-r--r--sysutils/fusefs-kmod/files/patch-fuse_module__fuse_main.c14
2 files changed, 15 insertions, 1 deletions
diff --git a/sysutils/fusefs-kmod/Makefile b/sysutils/fusefs-kmod/Makefile
index b866a8c5b5bb..fbe57869cc78 100644
--- a/sysutils/fusefs-kmod/Makefile
+++ b/sysutils/fusefs-kmod/Makefile
@@ -7,7 +7,7 @@
PORTNAME= fusefs
DISTVERSION= 0.3.9-pre1.20080208
-PORTREVISION= 6
+PORTREVISION= 7
CATEGORIES= sysutils kld
MASTER_SITES= http://mercurial.creo.hu/repos/fuse4bsd-hg/index.cgi/archive/
PKGNAMESUFFIX= -kmod
diff --git a/sysutils/fusefs-kmod/files/patch-fuse_module__fuse_main.c b/sysutils/fusefs-kmod/files/patch-fuse_module__fuse_main.c
new file mode 100644
index 000000000000..1d44eab49570
--- /dev/null
+++ b/sysutils/fusefs-kmod/files/patch-fuse_module__fuse_main.c
@@ -0,0 +1,14 @@
+--- fuse_module/fuse_main.c.00 2010-08-15 14:40:29.000000000 +0400
++++ fuse_module/fuse_main.c 2010-08-15 15:56:56.000000000 +0400
+@@ -108,6 +108,9 @@
+ switch (what) {
+ case MOD_LOAD: /* kldload */
+
++#if __FreeBSD_version > 800009
++ fuse_fileops.fo_truncate = vnops.fo_truncate;
++#endif
+ fuse_fileops.fo_ioctl = vnops.fo_ioctl;
+ fuse_fileops.fo_poll = vnops.fo_poll;
+ fuse_fileops.fo_kqfilter = vnops.fo_kqfilter;
+
+