arla on FreeBSD 4.0 + Linuxulator anyone?

Assar Westerlund assar at stacken.kth.se
Mon Jun 12 21:29:18 CEST 2000


Robert P Ricci <ricci at eng.utah.edu> writes:
> syscall linux_fcntl(0x1c,0x5,0xbfbf8564)
>         errno -95 'Operation not supported'                  <-- Fails

This is F_GETLK, aka lock the file, which we have not implemented
(yet).

The quick-and-dirty way is to implement it as an noop, see appended
patch.

Doing it right takes a little more effort, but it's on the TODO list.

/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:27:36
@@ -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





More information about the Arla-drinkers mailing list