1*55482Sbostic /*
2*55482Sbostic  * Copyright (c) 1990 Jan-Simon Pendry
3*55482Sbostic  * Copyright (c) 1990 Imperial College of Science, Technology & Medicine
4*55482Sbostic  * Copyright (c) 1990 The Regents of the University of California.
5*55482Sbostic  * All rights reserved.
6*55482Sbostic  *
7*55482Sbostic  * This code is derived from software contributed to Berkeley by
8*55482Sbostic  * Jan-Simon Pendry at Imperial College, London.
9*55482Sbostic  *
10*55482Sbostic  * %sccs.include.redist.c%
11*55482Sbostic  *
12*55482Sbostic  *	@(#)mount_stellix.c	5.1 (Berkeley) 07/21/92
13*55482Sbostic  */
14*55482Sbostic 
15*55482Sbostic /*
16*55482Sbostic  * IRIX Mount helper
17*55482Sbostic  */
18*55482Sbostic 
19*55482Sbostic #include "misc-stellix.h"
20*55482Sbostic 
21*55482Sbostic /*
22*55482Sbostic  * Map from conventional mount arguments
23*55482Sbostic  * to IRIX style arguments.
24*55482Sbostic  */
25*55482Sbostic stellix_mount(fsname, dir, flags, type, data)
26*55482Sbostic char *fsname;
27*55482Sbostic char *dir;
28*55482Sbostic int flags;
29*55482Sbostic int type;
30*55482Sbostic void *data;
31*55482Sbostic {
32*55482Sbostic 
33*55482Sbostic #ifdef DEBUG
34*55482Sbostic 	dlog("stellix_mount: fsname %s, dir %s, type %d", fsname, dir, type);
35*55482Sbostic #endif /* DEBUG */
36*55482Sbostic 
37*55482Sbostic 	if (type == MOUNT_TYPE_NFS) {
38*55482Sbostic 
39*55482Sbostic 		return mount(dir, dir, (MS_FSS|MS_NFS|flags),
40*55482Sbostic 			     type, (caddr_t) data );
41*55482Sbostic 
42*55482Sbostic 	} else if (type == MOUNT_TYPE_UFS) {
43*55482Sbostic 
44*55482Sbostic 		return mount(fsname, dir, (MS_FSS|flags), type);
45*55482Sbostic 
46*55482Sbostic 	} else {
47*55482Sbostic 		return EINVAL;
48*55482Sbostic 	}
49*55482Sbostic 
50*55482Sbostic }
51