Lines Matching refs:uap
224 fsop_mount(vfs_t *vfsp, vnode_t *mvp, struct mounta *uap, cred_t *cr) in fsop_mount() argument
226 return (*(vfsp)->vfs_op->vfs_mount)(vfsp, mvp, uap, cr); in fsop_mount()
980 mntopts_t *mntopts, struct mounta *uap) in lofi_add() argument
982 int fromspace = (uap->flags & MS_SYSSPACE) ? in lofi_add()
1004 if (pn_get(uap->spec, fromspace, &pn) != 0) in lofi_add()
1007 if (lookupname(uap->spec, fromspace, FOLLOW, NULL, &vp) != 0) in lofi_add()
1015 if ((uap->flags & (MS_REMOUNT|MS_GLOBAL)) || in lofi_add()
1109 domount(char *fsname, struct mounta *uap, vnode_t *vp, struct cred *credp, in domount() argument
1121 char *opts = uap->optptr; in domount()
1123 int optlen = uap->optlen; in domount()
1129 int splice = ((uap->flags & MS_NOSPLICE) == 0); in domount()
1130 int fromspace = (uap->flags & MS_SYSSPACE) ? in domount()
1175 } else if (uap->flags & (MS_OPTIONSTR | MS_DATA | MS_FSS)) { in domount()
1181 if ((fstype = (uintptr_t)uap->fstype) < 256) { in domount()
1196 if (uap->flags & MS_SYSSPACE) { in domount()
1197 error = copystr(uap->fstype, fsname, in domount()
1200 error = copyinstr(uap->fstype, fsname, in domount()
1230 if (uap->flags & MS_OPTIONSTR) { in domount()
1238 if ((uap->flags & MS_SYSSPACE) == 0) { in domount()
1254 if (uap->flags & MS_REMOUNT) in domount()
1256 if (uap->flags & MS_RDONLY) in domount()
1258 if (uap->flags & MS_NOSUID) in domount()
1271 uap->flags |= MS_REMOUNT; in domount()
1278 uap->flags |= MS_RDONLY; in domount()
1281 uap->flags |= MS_NOSUID; in domount()
1302 if (pn_get(uap->spec, fromspace, &pn) == 0) { in domount()
1315 (uap->flags & MS_GLOBAL) == 0 && in domount()
1316 lookupname(uap->spec, fromspace, in domount()
1321 if ((error = pn_get(uap->dir, fromspace, &pn)) == 0) { in domount()
1417 if ((uap->flags & (MS_DATA | MS_OPTIONSTR)) == 0) { in domount()
1418 uap->dataptr = NULL; in domount()
1419 uap->datalen = 0; in domount()
1472 if ((error = lofi_add(fsname, vfsp, &mnt_mntopts, uap)) != 0) { in domount()
1488 uap->flags |= MS_NOSUID; in domount()
1530 (uap->flags & MS_GLOBAL) == 0 && in domount()
1531 lookupname(uap->spec, fromspace, FOLLOW, NULL, &bvp) == 0) { in domount()
1585 if (uap->flags & MS_OPTIONSTR) { in domount()
1647 error = VFS_MOUNT(vfsp, vp, uap, credp); in domount()
1649 if (uap->flags & MS_RDONLY) in domount()
1651 if (uap->flags & MS_NOSUID) in domount()
1653 if (uap->flags & MS_GLOBAL) in domount()
1696 vfs_add(vp, vfsp, uap->flags); in domount()
1744 if (uap->flags & MS_OPTIONSTR) { in domount()
1750 (uap->flags & MS_SYSSPACE) == 0) { in domount()