Re: DazukoFS for FreeBSD 4
John Ogness <[email protected]>
| Newsgroups | gmane.linux.dazuko.devel |
|---|---|
| Message-ID | <[email protected]> |
John Ogness wrote: > 5. Patch the generated DazukoFS source code: > > $ cd out/FreeBSD-4.10-STABLE/dazukofs > $ patch -p0 < patch-fist-dazuko-freebsd.diff > > (Note: patch-fist-dazuko-freebsd.diff is attached to this email) Hi, Sorry, I just noticed that the patch file I sent before was missing a parenthesis. ??? Anyway, here is a working patch for DazukoFS. John Ogness -- Dazuko Maintainer _______________________________________________ Dazuko-devel mailing list [email protected] http://lists.nongnu.org/mailman/listinfo/dazuko-devel
patch-fist-dazuko-freebsd.diff
(text/plain, 1.1 KB)
--- Makefile Tue Sep 7 23:13:14 2004
+++ ../dazukofs.good/Makefile Tue Sep 7 21:40:04 2004
@@ -4,7 +4,7 @@
OPT_DBG=-Werror -Wno-unused
OPT_DEF=-D_KERNEL -DKLD_MODULE -DFISTGEN
OPT_INC=-I. -I$(SYS_SRC)
-CFLAGS=$(OPT_DEBUG) $(OPT_DEF) $(OPT_DBG) $(OPT_INC)
+CFLAGS=$(OPT_DEBUG) $(OPT_DEF) $(OPT_DBG) $(OPT_INC) -I/tmp/dazuko
UCFLAGS=$(OPT_DEBUG) -DFISTGEN $(OPT_INC)
SYS_SRC=/sys
--- vnode.c Tue Sep 7 23:13:14 2004
+++ ../dazukofs.good/vnode.c Tue Sep 7 23:11:44 2004
@@ -221,6 +221,9 @@
#include <dazukofs.h>
#endif
+#include "dazuko_platform.h"
+#include "dazuko_events.h"
+
static int dazukofs_bug_bypass = 0; /* for debugging: enables bypass printf'ing */
SYSCTL_INT(_debug, OID_AUTO, dazukofs_bug_bypass, CTLFLAG_RW, &dazukofs_bug_bypass, 0, "");
@@ -338,7 +341,13 @@
* with the modified argument structure.
*/
if (vps_p[0] && *vps_p[0])
+ {
+
+if(descp->vdesc_offset == VOFFSET(vop_open))
+ fist_dazuko_sys_generic(DAZUKO_ON_OPEN, curproc, *(vps_p[0]), 1);
+
error = VCALL(*(vps_p[0]), descp->vdesc_offset, ap);
+ }
else {
printf("dazukofs_bypass: no map for %s\n", descp->vdesc_name);
error = EINVAL;