Home
last modified time | relevance | path

Searched refs:vfsp (Results 1 – 25 of 30) sorted by relevance

12

/NextBSD/sys/cddl/compat/opensolaris/kern/
HDopensolaris_vfs.c43 vfs_setmntopt(vfs_t *vfsp, const char *name, const char *arg, in vfs_setmntopt() argument
50 if (!(locked = mtx_owned(MNT_MTX(vfsp)))) in vfs_setmntopt()
51 MNT_ILOCK(vfsp); in vfs_setmntopt()
53 if (vfsp->mnt_opt == NULL) { in vfs_setmntopt()
56 MNT_IUNLOCK(vfsp); in vfs_setmntopt()
57 opts = malloc(sizeof(*vfsp->mnt_opt), M_MOUNT, M_WAITOK); in vfs_setmntopt()
58 MNT_ILOCK(vfsp); in vfs_setmntopt()
59 if (vfsp->mnt_opt == NULL) { in vfs_setmntopt()
60 vfsp->mnt_opt = opts; in vfs_setmntopt()
61 TAILQ_INIT(vfsp->mnt_opt); in vfs_setmntopt()
[all …]
HDopensolaris_lookup.c71 vfs_t *vfsp; in traverse() local
88 vfsp = vn_mountedvfs(cvp); in traverse()
89 if (vfsp == NULL) in traverse()
91 error = vfs_busy(vfsp, 0); in traverse()
106 error = VFS_ROOT(vfsp, lktype, &tvp); in traverse()
107 vfs_unbusy(vfsp); in traverse()
HDopensolaris_policy.c69 secpolicy_fs_unmount(cred_t *cr, struct mount *vfsp __unused) in secpolicy_fs_unmount()
370 secpolicy_fs_mount(cred_t *cr, vnode_t *mvp, struct mount *vfsp) in secpolicy_fs_mount() argument
399 secpolicy_fs_mount_clearopts(cred_t *cr, struct mount *vfsp) in secpolicy_fs_mount_clearopts() argument
403 MNT_ILOCK(vfsp); in secpolicy_fs_mount_clearopts()
404 vfsp->vfs_flag |= VFS_NOSETUID | MNT_USER; in secpolicy_fs_mount_clearopts()
405 vfs_clearmntopt(vfsp, MNTOPT_SETUID); in secpolicy_fs_mount_clearopts()
406 vfs_setmntopt(vfsp, MNTOPT_NOSETUID, NULL, 0); in secpolicy_fs_mount_clearopts()
407 MNT_IUNLOCK(vfsp); in secpolicy_fs_mount_clearopts()
/NextBSD/sys/kern/
HDvfs_init.c113 struct vfsconf *vfsp; in vfs_byname_locked() local
118 TAILQ_FOREACH(vfsp, &vfsconf, vfc_list) { in vfs_byname_locked()
119 if (!strcmp(name, vfsp->vfc_name)) in vfs_byname_locked()
120 return (vfsp); in vfs_byname_locked()
128 struct vfsconf *vfsp; in vfs_byname() local
131 vfsp = vfs_byname_locked(name); in vfs_byname()
133 return (vfsp); in vfs_byname()
139 struct vfsconf *vfsp; in vfs_byname_kld() local
142 vfsp = vfs_byname(fstype); in vfs_byname_kld()
143 if (vfsp != NULL) in vfs_byname_kld()
[all …]
HDvfs_mount.c452 vfs_mount_alloc(struct vnode *vp, struct vfsconf *vfsp, const char *fspath, in vfs_mount_alloc() argument
466 atomic_add_acq_int(&vfsp->vfc_refcount, 1); in vfs_mount_alloc()
467 mp->mnt_op = vfsp->vfc_vfsops; in vfs_mount_alloc()
468 mp->mnt_vfc = vfsp; in vfs_mount_alloc()
469 mp->mnt_stat.f_type = vfsp->vfc_typenum; in vfs_mount_alloc()
471 strlcpy(mp->mnt_stat.f_fstypename, vfsp->vfc_name, MFSNAMELEN); in vfs_mount_alloc()
712 struct vfsconf *vfsp = NULL; local
743 vfsp = vfs_byname_kld(fstype, td, &error);
745 if (vfsp == NULL)
747 if (vfsp->vfc_vfsops->vfs_cmount == NULL)
[all …]
HDvfs_subr.c3566 vfsconf2x(struct sysctl_req *req, struct vfsconf *vfsp) in vfsconf2x() argument
3571 strcpy(xvfsp.vfc_name, vfsp->vfc_name); in vfsconf2x()
3572 xvfsp.vfc_typenum = vfsp->vfc_typenum; in vfsconf2x()
3573 xvfsp.vfc_refcount = vfsp->vfc_refcount; in vfsconf2x()
3574 xvfsp.vfc_flags = vfsp->vfc_flags; in vfsconf2x()
3595 vfsconf2x32(struct sysctl_req *req, struct vfsconf *vfsp) in vfsconf2x32() argument
3599 strcpy(xvfsp.vfc_name, vfsp->vfc_name); in vfsconf2x32()
3600 xvfsp.vfc_typenum = vfsp->vfc_typenum; in vfsconf2x32()
3601 xvfsp.vfc_refcount = vfsp->vfc_refcount; in vfsconf2x32()
3602 xvfsp.vfc_flags = vfsp->vfc_flags; in vfsconf2x32()
[all …]
HDvfs_mountroot.c230 struct vfsconf *vfsp; in vfs_mountroot_devfs() local
245 vfsp = vfs_byname("devfs"); in vfs_mountroot_devfs()
246 KASSERT(vfsp != NULL, ("Could not find devfs by name")); in vfs_mountroot_devfs()
247 if (vfsp == NULL) in vfs_mountroot_devfs()
250 mp = vfs_mount_alloc(NULLVP, vfsp, "/dev", td->td_ucred); in vfs_mountroot_devfs()
HDvfs_default.c1262 vfs_stdinit (vfsp) in vfs_stdinit() argument
1263 struct vfsconf *vfsp; in vfs_stdinit()
1270 vfs_stduninit (vfsp) in vfs_stduninit() argument
1271 struct vfsconf *vfsp; in vfs_stduninit()
/NextBSD/sys/cddl/compat/opensolaris/sys/
HDvfs.h57 #define VFS_HOLD(vfsp) do { \ argument
58 MNT_ILOCK(vfsp); \
59 MNT_REF(vfsp); \
60 MNT_IUNLOCK(vfsp); \
62 #define VFS_RELE(vfsp) do { \ argument
63 MNT_ILOCK(vfsp); \
64 MNT_REL(vfsp); \
65 MNT_IUNLOCK(vfsp); \
109 void vfs_setmntopt(vfs_t *vfsp, const char *name, const char *arg,
111 void vfs_clearmntopt(vfs_t *vfsp, const char *name);
[all …]
HDpolicy.h45 int secpolicy_fs_unmount(cred_t *cr, struct mount *vfsp);
67 int secpolicy_fs_owner(struct mount *vfsp, cred_t *cr);
68 int secpolicy_fs_mount(cred_t *cr, vnode_t *mvp, struct mount *vfsp);
69 void secpolicy_fs_mount_clearopts(cred_t *cr, struct mount *vfsp);
HDdnlc.h37 #define dnlc_purge_vfsp(vfsp, count) (0) argument
/NextBSD/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/
HDzfs_vfsops.c91 static int zfs_mount(vfs_t *vfsp);
92 static int zfs_umount(vfs_t *vfsp, int fflag);
93 static int zfs_root(vfs_t *vfsp, int flags, vnode_t **vpp);
94 static int zfs_statfs(vfs_t *vfsp, struct statfs *statp);
95 static int zfs_vget(vfs_t *vfsp, ino_t ino, int flags, vnode_t **vpp);
96 static int zfs_sync(vfs_t *vfsp, int waitfor);
97 static int zfs_checkexp(vfs_t *vfsp, struct sockaddr *nam, int *extflagsp,
99 static int zfs_fhtovp(vfs_t *vfsp, fid_t *fidp, int flags, vnode_t **vpp);
101 static void zfs_freevfs(vfs_t *vfsp);
125 zfs_sync(vfs_t *vfsp, int waitfor) in zfs_sync() argument
[all …]
HDzfs_ctldir.c711 vfs_t *vfsp; in zfsctl_rename_snap() local
719 vfsp = vn_mountedvfs(sep->se_root); in zfsctl_rename_snap()
720 ASSERT(vfsp != NULL); in zfsctl_rename_snap()
722 vfs_lock_wait(vfsp); in zfsctl_rename_snap()
739 pathref = vfs_getmntpoint(vfsp); in zfsctl_rename_snap()
746 vfs_setmntpoint(vfsp, newpath, 0); in zfsctl_rename_snap()
748 pathref = vfs_getresource(vfsp); in zfsctl_rename_snap()
755 vfs_setresource(vfsp, newpath, 0); in zfsctl_rename_snap()
757 vfs_unlock(vfsp); in zfsctl_rename_snap()
1675 zfsctl_lookup_objset(vfs_t *vfsp, uint64_t objsetid, zfsvfs_t **zfsvfsp) in zfsctl_lookup_objset() argument
[all …]
/NextBSD/sys/ufs/ufs/
HDufs_vfsops.c182 ufs_init(vfsp) in ufs_init() argument
183 struct vfsconf *vfsp; in ufs_init()
199 ufs_uninit(vfsp) in ufs_uninit() argument
200 struct vfsconf *vfsp; in ufs_uninit()
/NextBSD/sys/cddl/contrib/opensolaris/uts/common/fs/
HDgfs.c482 gfs_file_create(size_t size, vnode_t *pvp, vfs_t *vfsp, vnodeops_t *ops) in gfs_file_create() argument
492 error = getnewvnode("zfs_gfs", vfsp, ops, &vp); in gfs_file_create()
506 error = insmntque(vp, vfsp); in gfs_file_create()
545 gfs_dir_create(size_t struct_size, vnode_t *pvp, vfs_t *vfsp, vnodeops_t *ops, in gfs_dir_create() argument
553 vp = gfs_file_create(struct_size, pvp, vfsp, ops); in gfs_dir_create()
586 gfs_root_create(size_t size, vfs_t *vfsp, vnodeops_t *ops, ino64_t ino, in gfs_root_create() argument
592 VFS_HOLD(vfsp); in gfs_root_create()
593 vp = gfs_dir_create(size, NULL, vfsp, ops, entries, inode_cb, in gfs_root_create()
610 gfs_root_create_file(size_t size, vfs_t *vfsp, vnodeops_t *ops, ino64_t ino) in gfs_root_create_file() argument
616 VFS_HOLD(vfsp); in gfs_root_create_file()
[all …]
/NextBSD/sys/fs/nullfs/
HDnull_subr.c72 nullfs_init(vfsp) in nullfs_init() argument
73 struct vfsconf *vfsp; in nullfs_init()
83 nullfs_uninit(vfsp) in nullfs_uninit() argument
84 struct vfsconf *vfsp; in nullfs_uninit()
HDnull.h66 int nullfs_init(struct vfsconf *vfsp);
67 int nullfs_uninit(struct vfsconf *vfsp);
/NextBSD/sys/fs/autofs/
HDautofs.h130 int autofs_init(struct vfsconf *vfsp);
131 int autofs_uninit(struct vfsconf *vfsp);
/NextBSD/sys/libkern/
HDiconv.c570 struct vfsconf *vfsp; in iconv_vfs_refcount() local
572 vfsp = vfs_byname(fsname); in iconv_vfs_refcount()
573 if (vfsp != NULL && vfsp->vfc_refcount > 0) in iconv_vfs_refcount()
/NextBSD/sys/fs/unionfs/
HDunion.h107 int unionfs_init(struct vfsconf *vfsp);
108 int unionfs_uninit(struct vfsconf *vfsp);
/NextBSD/sys/fs/fdescfs/
HDfdesc_vnops.c95 fdesc_init(vfsp) in fdesc_init() argument
96 struct vfsconf *vfsp; in fdesc_init()
108 fdesc_uninit(vfsp) in fdesc_uninit() argument
109 struct vfsconf *vfsp; in fdesc_uninit()
/NextBSD/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/sys/
HDzfs_ctldir.h60 int zfsctl_lookup_objset(vfs_t *vfsp, uint64_t objsetid, zfsvfs_t **zfsvfsp);
/NextBSD/sys/fs/nfsclient/
HDnfs_clsubs.c91 ncl_uninit(struct vfsconf *vfsp) in ncl_uninit() argument
388 ncl_init(struct vfsconf *vfsp) in ncl_init() argument
/NextBSD/sys/fs/smbfs/
HDsmbfs_vfsops.c366 smbfs_init(struct vfsconf *vfsp) in smbfs_init() argument
375 smbfs_uninit(struct vfsconf *vfsp) in smbfs_uninit() argument
/NextBSD/sys/compat/linprocfs/
HDlinprocfs.c1324 struct vfsconf *vfsp; in linprocfs_dofilesystems() local
1327 TAILQ_FOREACH(vfsp, &vfsconf, vfc_list) { in linprocfs_dofilesystems()
1328 if (vfsp->vfc_flags & VFCF_SYNTHETIC) in linprocfs_dofilesystems()
1330 sbuf_printf(sb, "\t%s\n", vfsp->vfc_name); in linprocfs_dofilesystems()

12