[OpenAFS-devel] updates to solaris8 port of openafs
Chas Williams
chas@cmf.nrl.navy.mil
Tue, 14 Nov 2000 12:27:46 -0500 (EST)
here are a couple changes to the solaris8 port of openafs. i changed
the syscall to match the transarc/ibm afs version of afs (they
decided to use 65, or so truss tells me)
i was also getting crashes when shutting down the client, the included
patch for osi_vfsops.c should fix that problem as well (and it clears
up some warnings during compile time)
Index: src/afs/SOLARIS/osi_vfsops.c
===================================================================
RCS file: /afs/cmf/users/chas/cvsroot/openafs/src/afs/SOLARIS/osi_vfsops.c,v
retrieving revision 1.1.1.1.2.1
retrieving revision 1.1.1.1.2.3
diff -u -r1.1.1.1.2.1 -r1.1.1.1.2.3
--- osi_vfsops.c 2000/11/04 18:24:27 1.1.1.1.2.1
+++ osi_vfsops.c 2000/11/14 17:08:18 1.1.1.1.2.3
@@ -50,7 +50,11 @@
return 0;
}
+#if defined(AFS_SUN58_ENV)
+int afs_unmount (struct vfs *afsp, int flag, struct AFS_UCRED *credp)
+#else
int afs_unmount (struct vfs *afsp, struct AFS_UCRED *credp)
+#endif
{
AFS_GLOCK();
AFS_STATCNT(afs_unmount);
@@ -204,7 +208,6 @@
return EINVAL;
}
-
struct vfsops Afs_vfsops = {
afs_mount,
afs_unmount,
@@ -213,7 +216,10 @@
afs_sync,
afs_vget,
afs_mountroot,
- afs_swapvp
+ afs_swapvp,
+#if defined(AFS_SUN58_ENV)
+ fs_freevfs,
+#endif
};
Index: src/afsd/afs.rc.solaris.2.8
===================================================================
RCS file: /afs/cmf/users/chas/cvsroot/openafs/src/afsd/Attic/afs.rc.solaris.2.8,v
retrieving revision 1.1.2.1
retrieving revision 1.1.2.2
diff -u -r1.1.2.1 -r1.1.2.2
--- afs.rc.solaris.2.8 2000/11/04 18:26:21 1.1.2.1
+++ afs.rc.solaris.2.8 2000/11/14 17:08:25 1.1.2.2
@@ -41,8 +41,8 @@
else
echo "Creating entry for afs in /etc/name_to_sysnum"
cp /etc/name_to_sysnum /etc/name_to_sysnum.orig
- sed '/setcontext/i\
-afs 101' /etc/name_to_sysnum > /tmp/name_to_sysnum
+ sed '/nfs/i\
+afs 65' /etc/name_to_sysnum > /tmp/name_to_sysnum
mv /tmp/name_to_sysnum /etc/name_to_sysnum
echo "Rebooting now for new /etc/name_to_sysnum to take effect"
reboot
Index: src/config/param.sun4x_58.h
===================================================================
RCS file: /afs/cmf/users/chas/cvsroot/openafs/src/config/Attic/param.sun4x_58.h,v
retrieving revision 1.1.2.1
retrieving revision 1.1.2.2
diff -u -r1.1.2.1 -r1.1.2.2
--- param.sun4x_58.h 2000/11/04 18:25:30 1.1.2.1
+++ param.sun4x_58.h 2000/11/12 16:29:45 1.1.2.2
@@ -26,7 +26,7 @@
#define AFS_GCPAGS 1 /* if nonzero, garbage collect PAGs */
#define AFS_3DISPARES 1 /* Utilize the 3 available disk inode 'spares' */
-#define AFS_SYSCALL 101
+#define AFS_SYSCALL 65
/* File system entry (used if mount.h doesn't define MOUNT_AFS */
#define AFS_MOUNT_AFS "afs"
Index: src/config/param.sun4x_58_usr.h
===================================================================
RCS file: /afs/cmf/users/chas/cvsroot/openafs/src/config/Attic/param.sun4x_58_usr.h,v
retrieving revision 1.1.2.1
retrieving revision 1.1.2.2
diff -u -r1.1.2.1 -r1.1.2.2
--- param.sun4x_58_usr.h 2000/11/04 18:25:30 1.1.2.1
+++ param.sun4x_58_usr.h 2000/11/12 16:29:45 1.1.2.2
@@ -20,7 +20,7 @@
/*#define AFS_GLOBAL_SUNLOCK 1 /* For global locking */
#define AFS_3DISPARES 1 /* Utilize the 3 available disk inode 'spares' */
-#define AFS_SYSCALL 101
+#define AFS_SYSCALL 65
/* File system entry (used if mount.h doesn't define MOUNT_AFS */
#define AFS_MOUNT_AFS 1