support-dux-51-20010305
[openafs.git] / src / afs / DUX / osi_vfsops.c
index 22d73e8..87342e4 100644 (file)
@@ -1,8 +1,12 @@
-/* Copyright (C) 1995, 1998 Transarc Corporation - All rights reserved. */
 /*
- * (C) COPYRIGHT IBM CORPORATION 1987, 1988
- * LICENSED MATERIALS - PROPERTY OF IBM
+ * Copyright 2000, International Business Machines Corporation and others.
+ * All Rights Reserved.
+ * 
+ * This software has been released under the terms of the IBM Public
+ * License.  For details, see the LICENSE file in the top-level source
+ * directory or online at http://www.openafs.org/dl/license10.html
  */
+
 /*
  * osi_vfsops.c for DUX
  */
@@ -196,6 +200,14 @@ int mp_afs_sync(struct mount *mp, int flags)
 }
 
 
+#ifdef AFS_DUX50_ENV
+int mp_afs_smoothsync(struct mount *mp, u_int age, u_int smsync_flag)
+{
+    AFS_STATCNT(afs_sync);
+    return 0;
+}
+#endif
+
 int mp_afs_fhtovp(struct mount *afsp, struct fid *fidp, struct vnode **avcp)
 {
     struct vrequest treq;
@@ -346,7 +358,10 @@ struct vfsops afs_vfsops = {
     mp_afs_vptofh,
     mp_Afs_init,
     mp_afs_mountroot,
-    mp_afs_swapvp
+    mp_afs_swapvp,
+#ifdef AFS_DUX50_ENV
+    mp_afs_smoothsync
+#endif
 };
 
 
@@ -465,8 +480,12 @@ int mp_Afs_init(void)
     
     AFS_GLOCK();
     sysent[AFS_SYSCALL].sy_call = afs3_syscall;
+#ifdef SY_NARG
+    sysent[AFS_SYSCALL].sy_info = 6;
+#else
     sysent[AFS_SYSCALL].sy_parallel = 0;
     sysent[AFS_SYSCALL].sy_narg = 6;
+#endif
     sysent[SYS_setgroups].sy_call = Afs_xsetgroups;
     afs_xioctl_func = afsxioctl;    
     afs_xsetgroups_func = afsxsetgroups;