date and time created 92/07/21 13:20:51 by bostic
authorKeith Bostic <bostic@ucbvax.Berkeley.EDU>
Wed, 22 Jul 1992 04:20:51 +0000 (20:20 -0800)
committerKeith Bostic <bostic@ucbvax.Berkeley.EDU>
Wed, 22 Jul 1992 04:20:51 +0000 (20:20 -0800)
SCCS-vsn: usr.sbin/amd/config/mount_stellix.c 5.1

usr/src/usr.sbin/amd/config/mount_stellix.c [new file with mode: 0644]

diff --git a/usr/src/usr.sbin/amd/config/mount_stellix.c b/usr/src/usr.sbin/amd/config/mount_stellix.c
new file mode 100644 (file)
index 0000000..40eb886
--- /dev/null
@@ -0,0 +1,50 @@
+/*
+ * Copyright (c) 1990 Jan-Simon Pendry
+ * Copyright (c) 1990 Imperial College of Science, Technology & Medicine
+ * Copyright (c) 1990 The Regents of the University of California.
+ * All rights reserved.
+ *
+ * This code is derived from software contributed to Berkeley by
+ * Jan-Simon Pendry at Imperial College, London.
+ *
+ * %sccs.include.redist.c%
+ *
+ *     @(#)mount_stellix.c     5.1 (Berkeley) %G%
+ */
+
+/*
+ * IRIX Mount helper
+ */
+
+#include "misc-stellix.h"
+
+/*
+ * Map from conventional mount arguments
+ * to IRIX style arguments.
+ */
+stellix_mount(fsname, dir, flags, type, data)
+char *fsname;
+char *dir;
+int flags;
+int type;
+void *data;
+{
+
+#ifdef DEBUG
+       dlog("stellix_mount: fsname %s, dir %s, type %d", fsname, dir, type);
+#endif /* DEBUG */
+
+       if (type == MOUNT_TYPE_NFS) {
+
+               return mount(dir, dir, (MS_FSS|MS_NFS|flags),
+                            type, (caddr_t) data );
+
+       } else if (type == MOUNT_TYPE_UFS) {
+
+               return mount(fsname, dir, (MS_FSS|flags), type);
+
+       } else {
+               return EINVAL;
+       }
+
+}