arla on FreeBSD 4.0 + Linuxulator anyone?
Assar Westerlund
assar at stacken.kth.se
Mon Jun 12 21:48:37 CEST 2000
I wrote:
> The quick-and-dirty way is to implement it as an noop, see appended
> patch.
This patch had an unintended exercise for the user. The following one
is more complete.
/assar
Index: xfs_vnodeops-bsd.c
===================================================================
RCS file: /afs/stacken.kth.se/src/SourceRepository/arla/xfs/bsd/xfs_vnodeops-bsd.c,v
retrieving revision 1.72
diff -u -w -u -w -r1.72 xfs_vnodeops-bsd.c
--- xfs_vnodeops-bsd.c 2000/03/22 18:04:14 1.72
+++ xfs_vnodeops-bsd.c 2000/06/12 19:38:35
@@ -935,7 +935,6 @@
}
#endif
-#if 0
#ifdef HAVE_VOP_ADVLOCK
static int
xfs_advlock(void *v)
@@ -948,31 +947,9 @@
int a_flags;
} */ *ap = v;
- struct xfs_node *xn = VNODE_TO_XNODE(ap->a_vp);
- int ret;
- xfs_locktype_t locktype;
-
-/* if (XFS_TOKEN_GOT(xn, */
-
-#if 0
- if (ap->a_fl.l_start != 0 ||
- ap->a_fl.l_end != 0)
- printf ("WARN: someone is trying byte-range locking\n");
-
- switch (ap->a_op) {
- case F_SETLCK:
- locktype = XFS_READLOCK;
- break;
-
- ret = xfs_advlock_common (xn, );
-
- return ret;
-#else
return 0;
-#endif
}
#endif /* HAVE_VOP_ADVOCK */
-#endif
#ifdef HAVE_VOP_REVOKE
static int
@@ -1132,10 +1109,8 @@
#ifdef HAVE_VOP_PRINT
{&vop_print_desc, (vop_t *) xfs_print},
#endif
-#if 0
#ifdef HAVE_VOP_ADVLOCK
{&vop_advlock_desc, (vop_t *) xfs_advlock },
-#endif
#endif
#ifdef HAVE_VOP_PAGEIN
{&vop_pagein_desc, (vop_t *) xfs_pagein },
More information about the Arla-drinkers
mailing list