Coda requires a kernel module to run and DragonFly had such a kernel at one point. However the kernel was removed six years ago and there is no desire to restore it. One of the main reasons against doing so is the lack of IPv6 support in Coda. The userland patches for coda are therefore unnecessary and coda has been reverted to its previous state save for marking NOT-FOR-DRAGONFLY. PKGREVISION was mispelled in the makefile, so fixing that typo bumps the revision to nb2 (caught by pkglint).
28 lines
890 B
Text
28 lines
890 B
Text
$NetBSD: patch-ac,v 1.6 2012/08/03 10:32:55 marino Exp $
|
|
|
|
Added experimental code to support mounting on NetBSD >= 4.99.24. The
|
|
magic value of 256 is taken from coda_vfsops in coda_vfsops.c.
|
|
|
|
--- coda-src/venus/worker.cc.orig 2008-10-06 16:52:22.000000000 +0000
|
|
+++ coda-src/venus/worker.cc
|
|
@@ -403,11 +403,19 @@ void VFSMount()
|
|
error = nmount(md, 6, 0);
|
|
}
|
|
#endif
|
|
-
|
|
+
|
|
+#if defined(__NetBSD__) && defined(__NetBSD_Prereq__) && __NetBSD_Prereq__(4,99,24)
|
|
+ if (error < 0)
|
|
+ error = mount("coda", venusRoot, 0, (void *)kernDevice, 256);
|
|
+ if (error < 0)
|
|
+ error = mount("cfs", venusRoot, 0, (void *)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)
|