| /netbsd-src/external/cddl/osnet/sys/kern/ |
| H A D | vfs.c | 63 vfs_setmntopt(vfs_t *vfsp, const char *name, const char *arg, in vfs_setmntopt() argument 68 vfsp->mnt_flag |= MNT_RDONLY; in vfs_setmntopt() 71 vfsp->mnt_flag &= ~MNT_RDONLY; in vfs_setmntopt() 74 vfsp->mnt_flag |= MNT_NODEV; in vfs_setmntopt() 77 vfsp->mnt_flag |= MNT_NOATIME; in vfs_setmntopt() 80 vfsp->mnt_flag &= ~MNT_NOATIME; in vfs_setmntopt() 83 vfsp->mnt_flag |= MNT_NOSUID; in vfs_setmntopt() 86 vfsp->mnt_flag &= ~MNT_NOSUID; in vfs_setmntopt() 89 vfsp->mnt_flag |= MNT_NOEXEC; in vfs_setmntopt() 92 vfsp->mnt_flag &= ~MNT_NOEXEC; in vfs_setmntopt() [all …]
|
| H A D | policy.c | 118 secpolicy_fs_mount(cred_t *cred, vnode_t *mvp, struct mount *vfsp) in secpolicy_fs_mount() argument 122 KAUTH_REQ_SYSTEM_MOUNT_NEW, mvp, KAUTH_ARG(vfsp->mnt_flag), NULL); in secpolicy_fs_mount() 126 secpolicy_fs_unmount(cred_t *cred, struct mount *vfsp) in secpolicy_fs_unmount() argument 130 KAUTH_REQ_SYSTEM_MOUNT_UNMOUNT, vfsp, NULL, NULL); in secpolicy_fs_unmount() 435 secpolicy_fs_mount_clearopts(cred_t *cr, struct mount *vfsp) in secpolicy_fs_mount_clearopts() argument
|
| /netbsd-src/sys/coda/ |
| H A D | coda_vfsops.c | 159 coda_mount(struct mount *vfsp, /* Allocated and initialized by mount(2) */ in coda_mount() argument 177 if (vfsp->mnt_flag & MNT_GETARGS) in coda_mount() 185 if (CODA_MOUNTED(vfsp)) { in coda_mount() 249 vfsp->mnt_data = mi; in coda_mount() 250 vfsp->mnt_stat.f_fsidx.__fsid_val[0] = 0; in coda_mount() 251 vfsp->mnt_stat.f_fsidx.__fsid_val[1] = makefstype(MOUNT_CODA); in coda_mount() 252 vfsp->mnt_stat.f_fsid = vfsp->mnt_stat.f_fsidx.__fsid_val[0]; in coda_mount() 253 vfsp->mnt_stat.f_namemax = CODA_MAXNAMLEN; in coda_mount() 254 mi->mi_vfsp = vfsp; in coda_mount() 261 cp = make_coda_node(&rootfid, vfsp, VDIR); in coda_mount() [all …]
|
| H A D | cnode.h | 160 #define vftomi(vfsp) ((struct coda_mntinfo *)(vfsp->mnt_data)) argument 161 #define CODA_MOUNTED(vfsp) ((vftomi(vfsp) != (struct coda_mntinfo *)0) \ argument 162 && (vftomi(vfsp)->mi_started))
|
| /netbsd-src/external/cddl/osnet/dist/uts/common/fs/zfs/ |
| H A D | zfs_vfsops.c | 95 static int zfs_mount(vfs_t *vfsp); 96 static int zfs_umount(vfs_t *vfsp, int fflag); 97 static int zfs_root(vfs_t *vfsp, int flags, vnode_t **vpp); 98 static int zfs_statfs(vfs_t *vfsp, struct statfs *statp); 99 static int zfs_vget(vfs_t *vfsp, ino_t ino, int flags, vnode_t **vpp); 100 static int zfs_sync(vfs_t *vfsp, int waitfor); 101 static int zfs_checkexp(vfs_t *vfsp, struct sockaddr *nam, int *extflagsp, 103 static int zfs_fhtovp(vfs_t *vfsp, fid_t *fidp, int flags, vnode_t **vpp); 105 static void zfs_freevfs(vfs_t *vfsp); 135 static int zfs_mount(vfs_t *vfsp, const char *path, void *data, size_t *data_len); [all …]
|
| H A D | zfs_ctldir.c | 1161 zfsctl_lookup_objset(vfs_t *vfsp, uint64_t objsetid, zfsvfs_t **zfsvfsp) in zfsctl_lookup_objset() argument 1164 zfsvfs_t *zfsvfs = vfsp->vfs_data; in zfsctl_lookup_objset() 1170 error = sfs_vnode_get(vfsp, LK_EXCLUSIVE, in zfsctl_lookup_objset() 1191 zfsctl_umount_snapshots(vfs_t *vfsp, int fflags, cred_t *cr) in zfsctl_umount_snapshots() argument 1194 zfsvfs_t *zfsvfs = vfsp->vfs_data; in zfsctl_umount_snapshots() 1220 error = sfs_vnode_get(vfsp, LK_EXCLUSIVE, in zfsctl_umount_snapshots() 1309 vfs_t *vfsp; in sfs_snapshot_mount() local 1323 vfsp = vfs_mountalloc(vp->v_vfsp->mnt_op, vp); in sfs_snapshot_mount() 1324 if (vfsp == NULL) { in sfs_snapshot_mount() 1328 vfsp->mnt_op->vfs_refcount++; in sfs_snapshot_mount() [all …]
|
| H A D | zfs_ioctl.c | 1467 vfs_t *vfsp; in getzfsvfs() local 1481 vfsp = (*zfvp)->z_vfs; in getzfsvfs() 1482 vfs_ref(vfsp); in getzfsvfs() 1489 error = vfs_busy(vfsp, 0); in getzfsvfs() 1490 vfs_rel(vfsp); in getzfsvfs() 3065 vfs_t *vfsp; in zfs_get_vfs() local 3069 TAILQ_FOREACH(vfsp, &mountlist, mnt_list) { in zfs_get_vfs() 3070 if (strcmp(refstr_value(vfsp->vfs_resource), resource) == 0) { in zfs_get_vfs() 3071 if (vfs_busy(vfsp, MBF_MNTLSTLOCK) != 0) in zfs_get_vfs() 3072 vfsp = NULL; in zfs_get_vfs() [all …]
|
| /netbsd-src/external/cddl/osnet/sys/sys/ |
| H A D | vfs.h | 122 void vfs_setmntopt(vfs_t *vfsp, const char *name, const char *arg, 124 void vfs_clearmntopt(vfs_t *vfsp, const char *name); 125 int vfs_optionisset(const vfs_t *vfsp, const char *opt, char **argp); 143 #define vfs_set_feature(vfsp, feature) do { } while (0) argument 144 #define vfs_clear_feature(vfsp, feature) do { } while (0) argument 145 #define vfs_has_feature(vfsp, feature) (0) argument 147 #define VFS_HOLD(vfsp) do { \ argument 150 #define VFS_RELE(vfsp) do { \ argument
|
| H A D | policy.h | 47 int secpolicy_fs_unmount(cred_t *cr, struct mount *vfsp); 69 int secpolicy_fs_owner(struct mount *vfsp, cred_t *cr); 70 int secpolicy_fs_mount(cred_t *cr, vnode_t *mvp, struct mount *vfsp); 71 void secpolicy_fs_mount_clearopts(cred_t *cr, struct mount *vfsp);
|
| H A D | dnlc.h | 39 #define dnlc_purge_vfsp(vfsp, count) (0) argument
|
| /netbsd-src/sys/compat/common/ |
| H A D | compat_sysctl_09_43.c | 74 struct vfsops *vfsp; in sysctl_vfs_generic_conf() local 83 vfsp = vfs_getopsbyname(mountcompatnames[vfsnum]); in sysctl_vfs_generic_conf() 84 if (vfsp == NULL) in sysctl_vfs_generic_conf() 87 vfc.vfc_vfsops = vfsp; in sysctl_vfs_generic_conf() 88 strncpy(vfc.vfc_name, vfsp->vfs_name, sizeof(vfc.vfc_name)); in sysctl_vfs_generic_conf() 90 vfc.vfc_refcount = vfsp->vfs_refcount; in sysctl_vfs_generic_conf() 92 vfc.vfc_mountroot = vfsp->vfs_mountroot; in sysctl_vfs_generic_conf() 94 vfs_delref(vfsp); in sysctl_vfs_generic_conf()
|
| /netbsd-src/sys/kern/ |
| H A D | vfs_mount.c | 188 struct vfsops *vfsp = NULL; in vfs_rootmountalloc() 193 LIST_FOREACH(vfsp, &vfs_list, vfs_list) in vfs_rootmountalloc() 194 if (!strncmp(vfsp->vfs_name, fstypename, in vfs_rootmountalloc() 197 if (vfsp == NULL) { in vfs_rootmountalloc() 201 vfsp->vfs_refcount++; in vfs_rootmountalloc() 204 if ((mp = vfs_mountalloc(vfsp, NULL)) == NULL) in vfs_rootmountalloc() 209 (void)strlcpy(mp->mnt_stat.f_fstypename, vfsp->vfs_name, in vfs_rootmountalloc() 187 struct vfsops *vfsp = NULL; vfs_rootmountalloc() local
|
| /netbsd-src/external/cddl/osnet/dist/uts/common/fs/zfs/sys/ |
| H A D | zfs_ctldir.h | 63 int zfsctl_lookup_objset(vfs_t *vfsp, uint64_t objsetid, zfsvfs_t **zfsvfsp);
|
| /netbsd-src/sys/fs/nfs/client/ |
| H A D | nfs_clsubs.c | 93 ncl_uninit(struct vfsconf *vfsp) in ncl_uninit() argument 369 ncl_init(struct vfsconf *vfsp) in ncl_init() argument
|