155482Sbostic /*
255482Sbostic * Copyright (c) 1990 Jan-Simon Pendry
355482Sbostic * Copyright (c) 1990 Imperial College of Science, Technology & Medicine
4*61785Sbostic * Copyright (c) 1990, 1993
5*61785Sbostic * The Regents of the University of California. All rights reserved.
655482Sbostic *
755482Sbostic * This code is derived from software contributed to Berkeley by
855482Sbostic * Jan-Simon Pendry at Imperial College, London.
955482Sbostic *
1055482Sbostic * %sccs.include.redist.c%
1155482Sbostic *
12*61785Sbostic * @(#)mount_stellix.c 8.1 (Berkeley) 06/06/93
1355482Sbostic */
1455482Sbostic
1555482Sbostic /*
1655482Sbostic * IRIX Mount helper
1755482Sbostic */
1855482Sbostic
1955482Sbostic #include "misc-stellix.h"
2055482Sbostic
2155482Sbostic /*
2255482Sbostic * Map from conventional mount arguments
2355482Sbostic * to IRIX style arguments.
2455482Sbostic */
stellix_mount(fsname,dir,flags,type,data)2555482Sbostic stellix_mount(fsname, dir, flags, type, data)
2655482Sbostic char *fsname;
2755482Sbostic char *dir;
2855482Sbostic int flags;
2955482Sbostic int type;
3055482Sbostic void *data;
3155482Sbostic {
3255482Sbostic
3355482Sbostic #ifdef DEBUG
3455482Sbostic dlog("stellix_mount: fsname %s, dir %s, type %d", fsname, dir, type);
3555482Sbostic #endif /* DEBUG */
3655482Sbostic
3755482Sbostic if (type == MOUNT_TYPE_NFS) {
3855482Sbostic
3955482Sbostic return mount(dir, dir, (MS_FSS|MS_NFS|flags),
4055482Sbostic type, (caddr_t) data );
4155482Sbostic
4255482Sbostic } else if (type == MOUNT_TYPE_UFS) {
4355482Sbostic
4455482Sbostic return mount(fsname, dir, (MS_FSS|flags), type);
4555482Sbostic
4655482Sbostic } else {
4755482Sbostic return EINVAL;
4855482Sbostic }
4955482Sbostic
5055482Sbostic }
51