Searched defs:vfsp (Results 1 - 25 of 101) sorted by relevance

12345

/illumos-gate/usr/src/uts/common/syscall/
H A Dmount.c71 struct vfs *vfsp; /* dummy argument */ local
125 error = domount("pxfs", uap, vp, CRED(), &vfsp);
127 VFS_RELE(vfsp);
130 error = domount(NULL, uap, vp, CRED(), &vfsp);
132 VFS_RELE(vfsp);
H A Dumount.c64 umount2_engine(vfs_t *vfsp, int flag, cred_t *cr, int is_syscall) argument
85 vfs_lock_wait(vfsp);
90 * Note that vfsp->vfs_vnodecovered can be NULL here, either because
98 if (vn_vfswlock(vfsp->vfs_vnodecovered)) {
99 vfs_unlock(vfsp);
100 VFS_RELE(vfsp);
108 vfs_unlock(vfsp);
109 VFS_RELE(vfsp);
114 if ((error = dounmount(vfsp, flag, cr)) != 0)
126 struct vfs *vfsp; local
[all...]
H A Dstatfs.c113 cstatfs(struct vfs *vfsp, struct statfs32 *sbp, int len) argument
123 if (error = VFS_STATVFS(vfsp, &svfs))
H A Dstatvfs.c80 cstatvfs32(struct vfs *vfsp, struct statvfs32 *ubp) argument
92 if ((error = VFS_STATVFS(vfsp, &ds64)) != 0)
143 cstatvfs64(struct vfs *vfsp, struct statvfs64 *ubp) argument
152 if ((error = VFS_STATVFS(vfsp, &ds64)) != 0)
260 cstatvfs64_32(struct vfs *vfsp, struct statvfs64_32 *ubp) argument
267 if ((error = VFS_STATVFS(vfsp, &ds64)) != 0)
/illumos-gate/usr/src/uts/common/fs/smbsrv/
H A Dsmb_vfs.c41 smb_vfs_hold(smb_export_t *se, vfs_t *vfsp) argument
47 if (se == NULL || vfsp == NULL)
52 if ((smb_vfs = smb_vfs_find(se, vfsp)) != NULL) {
59 if ((rc = VFS_ROOT(vfsp, &rootvp)) != 0) {
70 smb_vfs->sv_vfsp = vfsp;
91 smb_vfs_rele(smb_export_t *se, vfs_t *vfsp) argument
95 ASSERT(vfsp);
98 smb_vfs = smb_vfs_find(se, vfsp);
143 smb_vfs_find(smb_export_t *se, vfs_t *vfsp) argument
150 if (smb_vfs->sv_vfsp == vfsp)
[all...]
/illumos-gate/usr/src/uts/common/fs/ufs/
H A Dufs_xattr.c66 struct vfs *vfsp; local
73 vfsp = dvp->v_vfsp;
75 error = ufs_iget(vfsp, ip->i_oeftflag, sip, cr);
/illumos-gate/usr/src/uts/common/fs/specfs/
H A Dspecvfsops.c108 spec_sync(struct vfs *vfsp, argument
/illumos-gate/usr/src/uts/common/fs/objfs/
H A Dobjfs_root.c47 objfs_create_root(vfs_t *vfsp) argument
49 vnode_t *vp = gfs_root_create(sizeof (objfs_rootnode_t), vfsp,
H A Dobjfs_vfs.c158 objfs_mount(vfs_t *vfsp, vnode_t *mvp, struct mounta *uap, cred_t *cr) argument
163 if (secpolicy_fs_mount(cr, mvp, vfsp) != 0)
178 vfsp->vfs_bsize = DEV_BSIZE;
179 vfsp->vfs_fstype = objfs_fstype;
184 vfs_make_fsid(&vfsp->vfs_fsid, dev, objfs_fstype);
185 vfsp->vfs_data = data;
186 vfsp->vfs_dev = dev;
191 data->objfs_vfs_root = objfs_create_root(vfsp);
197 objfs_unmount(vfs_t *vfsp, int flag, struct cred *cr) argument
201 if (secpolicy_fs_unmount(cr, vfsp) !
234 objfs_root(vfs_t *vfsp, vnode_t **vpp) argument
245 objfs_statvfs(vfs_t *vfsp, statvfs64_t *sp) argument
[all...]
/illumos-gate/usr/src/cmd/mdb/common/modules/lofs/
H A Dlofs.c58 uintptr_t rootvfsp, vfsp; local
71 vfsp = rootvfsp;
73 (void) mdb_vread(&vfs, sizeof (vfs), vfsp);
75 vfsp = (uintptr_t)vfs.vfs_next;
81 vfsp = (uintptr_t)vfs.vfs_next;
82 } while (vfsp != rootvfsp);
95 vfsp = rootvfsp;
97 (void) mdb_vread(&vfs, sizeof (vfs), vfsp);
99 vfsp = (uintptr_t)vfs.vfs_next;
116 vfsp
[all...]
/illumos-gate/usr/src/uts/common/fs/mntfs/
H A Dmntvfsops.c178 mntmount(struct vfs *vfsp, struct vnode *mvp, argument
185 if (secpolicy_fs_mount(cr, mvp, vfsp) != 0)
194 mntzone = zone_find_by_path(refstr_value(vfsp->vfs_mntpt));
204 vfs_setresource(vfsp, "mnttab", 0);
220 vfsp->vfs_fstype = mntfstype;
221 vfsp->vfs_data = (caddr_t)mnt;
228 vfsp->vfs_dev = makedevice(mnt_major, mnt_minor);
229 } while (vfs_devismounted(vfsp->vfs_dev));
231 vfs_make_fsid(&vfsp->vfs_fsid, vfsp
242 mntunmount(struct vfs *vfsp, int flag, struct cred *cr) argument
269 mntroot(struct vfs *vfsp, struct vnode **vpp) argument
280 mntstatvfs(struct vfs *vfsp, struct statvfs64 *sp) argument
[all...]
/illumos-gate/usr/src/uts/common/fs/proc/
H A Dprvfsops.c123 prinitrootnode(prnode_t *pnp, vfs_t *vfsp) argument
132 VN_SET_VFS_TYPE_DEV(vp, vfsp, VDIR, 0);
191 prmount(struct vfs *vfsp, struct vnode *mvp, argument
197 if (secpolicy_fs_mount(cr, mvp, vfsp) != 0)
206 mntzone = zone_find_by_path(refstr_value(vfsp->vfs_mntpt));
214 vfs_setresource(vfsp, "proc", 0);
229 prinitrootnode(pnp, vfsp);
230 vfsp->vfs_fstype = procfstype;
231 vfsp->vfs_data = (caddr_t)pnp;
232 vfsp
250 prunmount(struct vfs *vfsp, int flag, struct cred *cr) argument
290 prroot(struct vfs *vfsp, struct vnode **vpp) argument
300 prstatvfs(struct vfs *vfsp, struct statvfs64 *sp) argument
[all...]
/illumos-gate/usr/src/uts/common/fs/sharefs/
H A Dsharefs_vfsops.c183 sharefs_mount(vfs_t *vfsp, vnode_t *mvp, struct mounta *uap, cred_t *cr) argument
188 if (secpolicy_fs_mount(cr, mvp, vfsp) != 0)
200 vfsp->vfs_bsize = DEV_BSIZE;
201 vfsp->vfs_fstype = sharefs_fstype;
206 vfs_make_fsid(&vfsp->vfs_fsid, dev, sharefs_fstype);
207 vfsp->vfs_data = data;
208 vfsp->vfs_dev = dev;
213 data->sharefs_vfs_root = sharefs_create_root_file(vfsp);
219 sharefs_unmount(vfs_t *vfsp, int flag, struct cred *cr) argument
223 if (secpolicy_fs_unmount(cr, vfsp) !
266 sharefs_root(vfs_t *vfsp, vnode_t **vpp) argument
277 sharefs_statvfs(vfs_t *vfsp, statvfs64_t *sp) argument
[all...]
H A Dsharefs_vnops.c359 sharefs_create_root_file(vfs_t *vfsp) argument
365 vfsp, sharefs_ops_data, SHAREFS_INO_FILE);
/illumos-gate/usr/src/lib/smbsrv/libfksmbsrv/common/
H A Dfake_lookup.c156 vfs_t *vfsp; local
175 vfsp = cvp->v_vfsp;
184 vfs_rlock_wait(vfsp);
200 vfs_unlock(vfsp);
207 vfs_unlock(vfsp);
498 vfs_t *vfsp; local
517 vfsp = vn_mountedvfs(cvp);
518 if (vfsp == NULL) {
526 error = VFS_ROOT(vfsp, &tvp);
H A Dfake_vfs.c102 vfs_has_feature(vfs_t *vfsp, vfs_feature_t feature) argument
120 vfs_getops(vfs_t *vfsp) argument
122 return (vfsp->vfs_op);
140 fsop_root(vfs_t *vfsp, vnode_t **vpp) argument
154 fsop_statfs(vfs_t *vfsp, statvfs64_t *sp) argument
171 vfs_getmntpoint(const struct vfs *vfsp) argument
175 mntpt = vfsp->vfs_mntpt;
183 vfs_hold(vfs_t *vfsp) argument
189 vfs_rele(vfs_t *vfsp) argument
195 vfs_lock(vfs_t *vfsp) argument
202 vfs_rlock(vfs_t *vfsp) argument
209 vfs_lock_wait(vfs_t *vfsp) argument
215 vfs_rlock_wait(vfs_t *vfsp) argument
221 vfs_unlock(vfs_t *vfsp) argument
[all...]
/illumos-gate/usr/src/uts/common/fs/bootfs/
H A Dbootfs_vfsops.c65 bootfs_mount(vfs_t *vfsp, vnode_t *mvp, struct mounta *uap, cred_t *cr) argument
72 if ((ret = secpolicy_fs_mount(cr, mvp, vfsp)) != 0)
95 vfs_setresource(vfsp, bootfs_name, 0);
121 bfs->bfs_vfsp = vfsp;
123 vfsp->vfs_data = (caddr_t)bfs;
124 vfsp->vfs_fstype = bootfs_fstype;
125 vfsp->vfs_dev = fsdev;
126 vfsp->vfs_bsize = PAGESIZE;
127 vfsp->vfs_flag |= VFS_RDONLY | VFS_NOSETUID | VFS_NOTRUNC |
129 vfs_make_fsid(&vfsp
156 bootfs_unmount(vfs_t *vfsp, int flag, cred_t *cr) argument
188 bootfs_root(vfs_t *vfsp, vnode_t **vpp) argument
200 bootfs_statvfs(vfs_t *vfsp, struct statvfs64 *sbp) argument
[all...]
/illumos-gate/usr/src/lib/libdiskmgt/common/
H A Dinuse_fs.c309 struct vfstab_list *vfsp; local
311 vfsp = (struct vfstab_list *)malloc(sizeof (struct vfstab_list));
312 if (vfsp == NULL) {
316 vfsp->special = strdup(vp->vfs_special);
317 if (vfsp->special == NULL) {
318 free(vfsp);
323 vfsp->mountp = strdup(vp->vfs_mountp);
324 if (vfsp->mountp == NULL) {
325 free(vfsp);
329 vfsp
[all...]
/illumos-gate/usr/src/uts/common/fs/ctfs/
H A Dctfs_root.c217 ctfs_mount(vfs_t *vfsp, vnode_t *mvp, struct mounta *uap, cred_t *cr) argument
224 if (secpolicy_fs_mount(cr, mvp, vfsp) != 0)
239 vfsp->vfs_bsize = DEV_BSIZE;
240 vfsp->vfs_fstype = ctfs_fstype;
245 vfs_make_fsid(&vfsp->vfs_fsid, dev, ctfs_fstype);
246 vfsp->vfs_data = data;
247 vfsp->vfs_dev = dev;
267 vfsp, ctfs_ops_root, CTFS_INO_ROOT, dirent, ctfs_root_do_inode,
279 ctfs_unmount(vfs_t *vfsp, int flag, struct cred *cr) argument
283 if (secpolicy_fs_unmount(cr, vfsp) !
325 ctfs_root(vfs_t *vfsp, vnode_t **vpp) argument
340 ctfs_statvfs(vfs_t *vfsp, statvfs64_t *sp) argument
[all...]
/illumos-gate/usr/src/uts/common/fs/devfs/
H A Ddevfs_vfsops.c177 devfs_mount(struct vfs *vfsp, struct vnode *mvp, struct mounta *uap, argument
187 if (secpolicy_fs_mount(cr, mvp, vfsp) != 0)
211 dv = dv_mkroot(vfsp, devfsdev);
217 devfs_data->devfs_vfsp = vfsp;
220 vfsp->vfs_data = (caddr_t)devfs_data;
221 vfsp->vfs_fstype = devfstype;
222 vfsp->vfs_dev = devfsdev;
223 vfsp->vfs_bsize = DEV_BSIZE;
224 vfsp->vfs_mtime = ddi_get_time();
225 vfs_make_fsid(&vfsp
244 devfs_unmount(struct vfs *vfsp, int flag, struct cred *cr) argument
253 devfs_root(struct vfs *vfsp, struct vnode **vpp) argument
267 devfs_statvfs(struct vfs *vfsp, struct statvfs64 *sbp) argument
307 devfs_mountroot(struct vfs *vfsp, enum whymountroot why) argument
[all...]
/illumos-gate/usr/src/uts/common/fs/lofs/
H A Dlofs_subr.c255 struct vfs *vfsp; local
291 vfsp = makelfsnode(vp->v_vfsp, li);
293 VN_SET_VFS_TYPE_DEV(nvp, vfsp, vp->v_type, vp->v_rdev);
314 makelfsnode(struct vfs *vfsp, struct loinfo *li) argument
322 if (vfsp == li->li_realvfs)
326 if ((lfs = lfsfind(vfsp, li)) == NULL) {
330 if ((tlfs = lfsfind(vfsp, li)) != NULL) {
335 lfs->lfs_realvfs = vfsp;
345 ((vfsp->vfs_flag | li->li_mflag) & ~li->li_dflag) &
347 lfs->lfs_vfs.vfs_bsize = vfsp
420 lfsfind(struct vfs *vfsp, struct loinfo *li) argument
460 lo_realvfs(struct vfs *vfsp, struct vnode **realrootvpp) argument
629 vfs_t *vfsp = &lfs->lfs_vfs; local
646 struct vfs *vfsp; local
[all...]
H A Dlofs_vfsops.c153 lo_mount(struct vfs *vfsp, argument
164 nodev = vfs_optionisset(vfsp, MNTOPT_NODEVICES, NULL);
166 if ((error = secpolicy_fs_mount(cr, vp, vfsp)) != 0)
175 if (!nodev && vfs_optionisset(vfsp, MNTOPT_NODEVICES, NULL))
176 vfs_setmntopt(vfsp, MNTOPT_DEVICES, NULL, VFS_NODISPLAY);
224 to_zptr = zone_find_by_path(refstr_value(vfsp->vfs_mntpt));
256 vfs_setmntopt(vfsp, MNTOPT_RO, NULL, 0);
266 vfs_setmntopt(vfsp, MNTOPT_RO, NULL, 0);
316 li->li_mountvfs = vfsp;
321 if (vfs_optionisset(vfsp, MNTOPT_R
422 lo_unmount(struct vfs *vfsp, int flag, struct cred *cr) argument
455 lo_root(struct vfs *vfsp, struct vnode **vpp) argument
484 lo_statvfs(register struct vfs *vfsp, struct statvfs64 *sbp) argument
511 lo_sync(struct vfs *vfsp, short flag, struct cred *cr) argument
525 lo_vget(struct vfs *vfsp, struct vnode **vpp, struct fid *fidp) argument
543 lo_freevfs(struct vfs *vfsp) argument
[all...]
/illumos-gate/usr/src/uts/common/fs/nfs/
H A Dnfs_common.c347 nfsdyn_mountroot(vfs_t *vfsp, whymountroot_t why) argument
398 vfs_setops(vfsp, nfs4_vfsops);
412 vfs_setops(vfsp, nfsdyn_vfsops);
420 vfs_setops(vfsp, nfs3_vfsops);
434 vfs_setops(vfsp, nfsdyn_vfsops);
448 vfs_setops(vfsp, nfs_vfsops);
456 vfs_setops(vfsp, nfsdyn_vfsops);
464 return (VFS_MOUNTROOT(vfsp, why));
/illumos-gate/usr/src/uts/common/fs/swapfs/
H A Dswap_subr.c80 static int swap_sync(struct vfs *vfsp, short flag, struct cred *cr);
241 swap_sync(struct vfs *vfsp, short flag, struct cred *cr) argument
/illumos-gate/usr/src/uts/common/cpr/
H A Dcpr_main.c327 struct vfs *vfsp; local
337 vfsp = vp->v_vfsp;
338 if (!cpr_is_ufs(vfsp)) {
362 if (vp->v_vfsp != vfsp && vp->v_type == VREG)

Completed in 115 milliseconds

12345