[OpenAFS] Fileserver @ OpenBSD

Jim Rees rees@umich.edu
Fri, 29 Nov 2002 13:42:10 -0500


  What syscall is openafs using ? Arla is using 208 on openbsd.

I'm using 210, for compatibility with Transarc afs.  I think Art and I
agreed on different numbers way back when Arla was getting started.

Here is a typical patch for non-afs applications using the afs syscall.
This one is for libkafs.

--- afssys_openbsd.c.orig	Wed Jul 19 17:26:09 2000
+++ afssys_openbsd.c	Wed Jul 19 17:27:55 2000
@@ -43,14 +43,17 @@
 
 int _kafs_debug;
 
+/* This is specific to our OpenBSD build of Transarc AFS. */
+#define AFS_SYSCALL	210
+
 int
 k_pioctl(char *a_path,
 	 int o_opcode,
 	 struct ViceIoctl *a_paramsP,
 	 int a_followSymlinks)
 {
-    return xfspioctl(AFSCALL_PIOCTL, a_path, o_opcode, a_paramsP,
-		     a_followSymlinks);
+    return syscall(AFS_SYSCALL, AFSCALL_PIOCTL, a_path, o_opcode, a_paramsP,
+                   a_followSymlinks);
 }
 
 int
@@ -79,7 +82,7 @@
 int
 k_setpag(void)
 {
-    return xfspioctl(AFSCALL_SETPAG, NULL, 0, NULL, 0);
+    return syscall(AFS_SYSCALL, AFSCALL_SETPAG, NULL, 0, NULL, 0);
 }
 
 int