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