summaryrefslogtreecommitdiff
path: root/net/coda/patches
diff options
context:
space:
mode:
authorrillig <rillig>2007-11-30 23:55:39 +0000
committerrillig <rillig>2007-11-30 23:55:39 +0000
commit92631298e9d0e7fde85318c4706baa2a32d3f40d (patch)
tree06044908bdb3c48219e403e26a011fc840725ee7 /net/coda/patches
parentebd1a9f44a6446d79c55228161b0ec627570e6f9 (diff)
downloadpkgsrc-92631298e9d0e7fde85318c4706baa2a32d3f40d.tar.gz
Added a patch for NetBSD >= 4.99.
Diffstat (limited to 'net/coda/patches')
-rw-r--r--net/coda/patches/patch-ac28
1 files changed, 28 insertions, 0 deletions
diff --git a/net/coda/patches/patch-ac b/net/coda/patches/patch-ac
new file mode 100644
index 00000000000..2be5bb6d9dc
--- /dev/null
+++ b/net/coda/patches/patch-ac
@@ -0,0 +1,28 @@
+$NetBSD: patch-ac,v 1.1 2007/11/30 23:55:39 rillig Exp $
+
+Added experimental code to support mounting on NetBSD >= 4.99. The magic
+value of 256 is taken from coda_vfsops in coda_vfsops.c.
+
+--- coda-src/venus/worker.cc.orig 2007-08-01 18:32:29.000000000 +0000
++++ coda-src/venus/worker.cc 2007-11-30 23:12:18.000000000 +0000
+@@ -367,11 +367,19 @@ void VFSMount()
+ error = nmount(md, 6, 0);
+ }
+ #endif
+-
++
++#if defined(__NetBSD__) && defined(__NetBSD_Prereq__) && __NetBSD_Prereq__(4,99,0)
++ if (error < 0)
++ error = mount("coda", venusRoot, 0, kernDevice, 256);
++ if (error < 0)
++ error = mount("cfs", venusRoot, 0, kernDevice, 256);
++#else
+ if (error < 0)
+ error = mount("coda", venusRoot, 0, kernDevice);
+ if (error < 0)
+ error = mount("cfs", venusRoot, 0, kernDevice);
++#endif
++
+ #if defined(__FreeBSD__) && !defined(__FreeBSD_version)
+ #define MOUNT_CFS 19
+ if (error < 0)