/titanic_44/usr/src/uts/common/fs/ |
H A D | vfs.c | 227 fsop_mount(vfs_t *vfsp, vnode_t *mvp, struct mounta *uap, cred_t *cr) in fsop_mount() argument 229 return (*(vfsp)->vfs_op->vfs_mount)(vfsp, mvp, uap, cr); in fsop_mount() 233 fsop_unmount(vfs_t *vfsp, int flag, cred_t *cr) in fsop_unmount() argument 235 return (*(vfsp)->vfs_op->vfs_unmount)(vfsp, flag, cr); in fsop_unmount() 239 fsop_root(vfs_t *vfsp, vnode_t **vpp) in fsop_root() argument 242 int ret = (*(vfsp)->vfs_op->vfs_root)(vfsp, vpp); in fsop_root() 247 if (ret == 0 && vfsp->vfs_mntpt != NULL && (*vpp)->v_path == NULL) { in fsop_root() 248 mntpt = vfs_getmntpoint(vfsp); in fsop_root() 258 fsop_statfs(vfs_t *vfsp, statvfs64_t *sp) in fsop_statfs() argument 260 return (*(vfsp)->vfs_op->vfs_statvfs)(vfsp, sp); in fsop_statfs() [all …]
|
/titanic_44/usr/src/uts/common/fs/lofs/ |
H A D | lofs_vfsops.c | 153 lo_mount(struct vfs *vfsp, in lo_mount() argument 164 nodev = vfs_optionisset(vfsp, MNTOPT_NODEVICES, NULL); in lo_mount() 166 if ((error = secpolicy_fs_mount(cr, vp, vfsp)) != 0) in lo_mount() 175 if (!nodev && vfs_optionisset(vfsp, MNTOPT_NODEVICES, NULL)) in lo_mount() 176 vfs_setmntopt(vfsp, MNTOPT_DEVICES, NULL, VFS_NODISPLAY); in lo_mount() 224 to_zptr = zone_find_by_path(refstr_value(vfsp->vfs_mntpt)); in lo_mount() 256 vfs_setmntopt(vfsp, MNTOPT_RO, NULL, 0); in lo_mount() 266 vfs_setmntopt(vfsp, MNTOPT_RO, NULL, 0); in lo_mount() 316 li->li_mountvfs = vfsp; in lo_mount() 321 if (vfs_optionisset(vfsp, MNTOPT_RO, NULL)) { in lo_mount() [all …]
|
H A D | lofs_subr.c | 255 struct vfs *vfsp; in makelonode() local 291 vfsp = makelfsnode(vp->v_vfsp, li); in makelonode() 293 VN_SET_VFS_TYPE_DEV(nvp, vfsp, vp->v_type, vp->v_rdev); in makelonode() 314 makelfsnode(struct vfs *vfsp, struct loinfo *li) in makelfsnode() argument 322 if (vfsp == li->li_realvfs) in makelfsnode() 326 if ((lfs = lfsfind(vfsp, li)) == NULL) { in makelfsnode() 330 if ((tlfs = lfsfind(vfsp, li)) != NULL) { in makelfsnode() 335 lfs->lfs_realvfs = vfsp; in makelfsnode() 345 ((vfsp->vfs_flag | li->li_mflag) & ~li->li_dflag) & in makelfsnode() 347 lfs->lfs_vfs.vfs_bsize = vfsp->vfs_bsize; in makelfsnode() [all …]
|
/titanic_44/usr/src/ucbhead/sys/ |
H A D | vfs.h | 156 #define VFS_MOUNT(vfsp, mvp, uap, cr) \ argument 157 (*(vfsp)->vfs_op->vfs_mount)(vfsp, mvp, uap, cr) 158 #define VFS_UNMOUNT(vfsp, cr) (*(vfsp)->vfs_op->vfs_unmount)(vfsp, cr) argument 159 #define VFS_ROOT(vfsp, vpp) (*(vfsp)->vfs_op->vfs_root)(vfsp, vpp) argument 160 #define VFS_STATVFS(vfsp, sp) (*(vfsp)->vfs_op->vfs_statvfs)(vfsp, sp) argument 161 #define VFS_SYNC(vfsp) (*(vfsp)->vfs_op->vfs_sync)(vfsp) argument 162 #define VFS_VGET(vfsp, vpp, fidp) \ argument 163 (*(vfsp)->vfs_op->vfs_vget)(vfsp, vpp, fidp) 164 #define VFS_MOUNTROOT(vfsp, init) \ argument 165 (*(vfsp)->vfs_op->vfs_mountroot)(vfsp, init) [all …]
|
/titanic_44/usr/src/uts/common/syscall/ |
H A D | umount.c | 64 umount2_engine(vfs_t *vfsp, int flag, cred_t *cr, int is_syscall) in umount2_engine() argument 85 vfs_lock_wait(vfsp); in umount2_engine() 98 if (vn_vfswlock(vfsp->vfs_vnodecovered)) { in umount2_engine() 99 vfs_unlock(vfsp); in umount2_engine() 100 VFS_RELE(vfsp); in umount2_engine() 108 vfs_unlock(vfsp); in umount2_engine() 109 VFS_RELE(vfsp); in umount2_engine() 114 if ((error = dounmount(vfsp, flag, cr)) != 0) in umount2_engine() 126 struct vfs *vfsp; in umount2() local 160 (vfsp = vfs_mntpoint2vfsp(pn.pn_path)) == NULL) { in umount2() [all …]
|
/titanic_44/usr/src/uts/common/sys/ |
H A D | vfs.h | 366 #define VFS_MOUNT(vfsp, mvp, uap, cr) fsop_mount(vfsp, mvp, uap, cr) argument 367 #define VFS_UNMOUNT(vfsp, flag, cr) fsop_unmount(vfsp, flag, cr) argument 368 #define VFS_ROOT(vfsp, vpp) fsop_root(vfsp, vpp) argument 369 #define VFS_STATVFS(vfsp, sp) fsop_statfs(vfsp, sp) argument 370 #define VFS_SYNC(vfsp, flag, cr) fsop_sync(vfsp, flag, cr) argument 371 #define VFS_VGET(vfsp, vpp, fidp) fsop_vget(vfsp, vpp, fidp) argument 372 #define VFS_MOUNTROOT(vfsp, init) fsop_mountroot(vfsp, init) argument 373 #define VFS_FREEVFS(vfsp) fsop_freefs(vfsp) argument 374 #define VFS_VNSTATE(vfsp, vn, ns) fsop_vnstate(vfsp, vn, ns) argument 473 vfsops_t *vfs_getops(vfs_t *vfsp); [all …]
|
/titanic_44/usr/src/uts/common/fs/objfs/ |
H A D | objfs_vfs.c | 158 objfs_mount(vfs_t *vfsp, vnode_t *mvp, struct mounta *uap, cred_t *cr) in objfs_mount() argument 163 if (secpolicy_fs_mount(cr, mvp, vfsp) != 0) in objfs_mount() 178 vfsp->vfs_bsize = DEV_BSIZE; in objfs_mount() 179 vfsp->vfs_fstype = objfs_fstype; in objfs_mount() 184 vfs_make_fsid(&vfsp->vfs_fsid, dev, objfs_fstype); in objfs_mount() 185 vfsp->vfs_data = data; in objfs_mount() 186 vfsp->vfs_dev = dev; in objfs_mount() 191 data->objfs_vfs_root = objfs_create_root(vfsp); in objfs_mount() 197 objfs_unmount(vfs_t *vfsp, int flag, struct cred *cr) in objfs_unmount() argument 201 if (secpolicy_fs_unmount(cr, vfsp) != 0) in objfs_unmount() [all …]
|
/titanic_44/usr/src/lib/smbsrv/libfksmbsrv/common/ |
H A D | fake_vfs.c | 102 vfs_has_feature(vfs_t *vfsp, vfs_feature_t feature) in vfs_has_feature() argument 120 vfs_getops(vfs_t *vfsp) in vfs_getops() argument 122 return (vfsp->vfs_op); in vfs_getops() 140 fsop_root(vfs_t *vfsp, vnode_t **vpp) in fsop_root() argument 154 fsop_statfs(vfs_t *vfsp, statvfs64_t *sp) in fsop_statfs() argument 171 vfs_getmntpoint(const struct vfs *vfsp) in vfs_getmntpoint() argument 175 mntpt = vfsp->vfs_mntpt; in vfs_getmntpoint() 183 vfs_hold(vfs_t *vfsp) in vfs_hold() argument 189 vfs_rele(vfs_t *vfsp) in vfs_rele() argument 195 vfs_lock(vfs_t *vfsp) in vfs_lock() argument [all …]
|
/titanic_44/usr/src/uts/common/fs/sharefs/ |
H A D | sharefs_vfsops.c | 183 sharefs_mount(vfs_t *vfsp, vnode_t *mvp, struct mounta *uap, cred_t *cr) in sharefs_mount() argument 188 if (secpolicy_fs_mount(cr, mvp, vfsp) != 0) in sharefs_mount() 200 vfsp->vfs_bsize = DEV_BSIZE; in sharefs_mount() 201 vfsp->vfs_fstype = sharefs_fstype; in sharefs_mount() 206 vfs_make_fsid(&vfsp->vfs_fsid, dev, sharefs_fstype); in sharefs_mount() 207 vfsp->vfs_data = data; in sharefs_mount() 208 vfsp->vfs_dev = dev; in sharefs_mount() 213 data->sharefs_vfs_root = sharefs_create_root_file(vfsp); in sharefs_mount() 219 sharefs_unmount(vfs_t *vfsp, int flag, struct cred *cr) in sharefs_unmount() argument 223 if (secpolicy_fs_unmount(cr, vfsp) != 0) in sharefs_unmount() [all …]
|
/titanic_44/usr/src/uts/common/fs/ufs/ |
H A D | ufs_vfsops.c | 260 ufs_mount(struct vfs *vfsp, struct vnode *mvp, struct mounta *uap, in ufs_mount() argument 277 if ((error = secpolicy_fs_mount(cr, mvp, vfsp)) != 0) in ufs_mount() 312 if ((vfsp->vfs_flag & VFS_RDONLY) != 0 || in ufs_mount() 336 error = vfs_get_lofi(vfsp, &lvp); in ufs_mount() 400 vfs_devmounting(dev, vfsp)) { in ufs_mount() 416 vfsp->vfs_flag |= VFS_RDONLY; in ufs_mount() 417 vfs_setmntopt(vfsp, MNTOPT_RO, NULL, 0); in ufs_mount() 420 vfsp->vfs_flag |= VFS_RDONLY; in ufs_mount() 425 error = mountfs(vfsp, why, lvp != NULL ? lvp : svp, in ufs_mount() 429 vfs_set_feature(vfsp, VFSFT_SYSATTR_VIEWS); in ufs_mount() [all …]
|
/titanic_44/usr/src/uts/common/sys/fs/ |
H A D | cachefs_log.h | 160 uint64_t vfsp; /* vfs pointer -- unique while mounted */ member 173 uint64_t vfsp; /* vfs pointer we're unmounting */ member 180 uint64_t vfsp; /* which filesystem */ member 192 uint64_t vfsp; /* which filesystem */ member 204 uint64_t vfsp; /* which filesystem */ member 215 uint64_t vfsp; /* which filesystem */ member 226 uint64_t vfsp; /* which filesystem */ member 236 uint64_t vfsp; /* which filesystem */ member 247 uint64_t vfsp; /* which filesystem */ member 259 uint64_t vfsp; /* which filesystem */ member [all …]
|
/titanic_44/usr/src/uts/common/fs/proc/ |
H A D | prvfsops.c | 123 prinitrootnode(prnode_t *pnp, vfs_t *vfsp) in prinitrootnode() argument 132 VN_SET_VFS_TYPE_DEV(vp, vfsp, VDIR, 0); in prinitrootnode() 191 prmount(struct vfs *vfsp, struct vnode *mvp, in prmount() argument 197 if (secpolicy_fs_mount(cr, mvp, vfsp) != 0) in prmount() 206 mntzone = zone_find_by_path(refstr_value(vfsp->vfs_mntpt)); in prmount() 214 vfs_setresource(vfsp, "proc", 0); in prmount() 229 prinitrootnode(pnp, vfsp); in prmount() 230 vfsp->vfs_fstype = procfstype; in prmount() 231 vfsp->vfs_data = (caddr_t)pnp; in prmount() 232 vfsp->vfs_bsize = DEV_BSIZE; in prmount() [all …]
|
/titanic_44/usr/src/uts/common/fs/mntfs/ |
H A D | mntvfsops.c | 178 mntmount(struct vfs *vfsp, struct vnode *mvp, in mntmount() argument 185 if (secpolicy_fs_mount(cr, mvp, vfsp) != 0) in mntmount() 194 mntzone = zone_find_by_path(refstr_value(vfsp->vfs_mntpt)); in mntmount() 204 vfs_setresource(vfsp, "mnttab", 0); in mntmount() 220 vfsp->vfs_fstype = mntfstype; in mntmount() 221 vfsp->vfs_data = (caddr_t)mnt; in mntmount() 228 vfsp->vfs_dev = makedevice(mnt_major, mnt_minor); in mntmount() 229 } while (vfs_devismounted(vfsp->vfs_dev)); in mntmount() 231 vfs_make_fsid(&vfsp->vfs_fsid, vfsp->vfs_dev, mntfstype); in mntmount() 232 vfsp->vfs_bsize = DEV_BSIZE; in mntmount() [all …]
|
/titanic_44/usr/src/uts/common/fs/hsfs/ |
H A D | hsfs_vfsops.c | 222 static int hsfs_mount(struct vfs *vfsp, struct vnode *mvp, 224 static int hsfs_unmount(struct vfs *vfsp, int, struct cred *cr); 225 static int hsfs_root(struct vfs *vfsp, struct vnode **vpp); 226 static int hsfs_statvfs(struct vfs *vfsp, struct statvfs64 *sbp); 227 static int hsfs_vget(struct vfs *vfsp, struct vnode **vpp, struct fid *fidp); 230 static int hs_mountfs(struct vfs *vfsp, dev_t dev, char *path, 232 static int hs_getrootvp(struct vfs *vfsp, struct hsfs *fsp, size_t pathsize); 285 hsfs_mount(struct vfs *vfsp, struct vnode *mvp, in hsfs_mount() argument 295 if ((error = secpolicy_fs_mount(cr, mvp, vfsp)) != 0) in hsfs_mount() 323 if (vfs_optionisset(vfsp, HOPT_NOMAPLCASE, NULL)) in hsfs_mount() [all …]
|
/titanic_44/usr/src/uts/common/fs/cachefs/ |
H A D | cachefs_log.c | 388 struct vfs *vfsp; in cachefs_log_logfile_open() local 395 vfsp = (struct vfs *)(uintptr_t)k->ks_vfsp; in cachefs_log_logfile_open() 396 fscp = VFS_TO_FSCACHE(vfsp); in cachefs_log_logfile_open() 397 cachefs_log_mount(cachep, 0, vfsp, fscp, in cachefs_log_logfile_open() 708 cachefs_log_mount(cachefscache_t *cachep, int Errno, struct vfs *vfsp, in cachefs_log_mount() argument 748 record->vfsp = (uint64_t)(uintptr_t)vfsp; in cachefs_log_mount() 782 (! xdr_opaque(xdrs, (caddr_t)&rec->vfsp, sizeof (rec->vfsp))) || in cachefs_xdr_mount() 796 cachefs_log_umount(cachefscache_t *cachep, int Errno, struct vfs *vfsp) in cachefs_log_umount() argument 812 record->vfsp = (uint64_t)(uintptr_t)vfsp; in cachefs_log_umount() 824 (! xdr_opaque(xdrs, (caddr_t)&rec->vfsp, sizeof (rec->vfsp)))) in cachefs_xdr_umount() [all …]
|
/titanic_44/usr/src/cmd/fs.d/cachefs/common/ |
H A D | stats_log.c | 357 (! xdr_opaque(xdrs, (caddr_t)&mount.vfsp, in stats_log_logfile_read() 358 sizeof (mount.vfsp))) || in stats_log_logfile_read() 388 (! xdr_opaque(xdrs, (caddr_t)&umount.vfsp, in stats_log_logfile_read() 389 sizeof (umount.vfsp)))) { in stats_log_logfile_read() 407 (! xdr_opaque(xdrs, (caddr_t)&getpage.vfsp, in stats_log_logfile_read() 408 sizeof (getpage.vfsp))) || in stats_log_logfile_read() 434 (! xdr_opaque(xdrs, (caddr_t)&readdir.vfsp, in stats_log_logfile_read() 435 sizeof (readdir.vfsp))) || in stats_log_logfile_read() 461 (! xdr_opaque(xdrs, (caddr_t)&readlink.vfsp, in stats_log_logfile_read() 462 sizeof (readlink.vfsp))) || in stats_log_logfile_read() [all …]
|
/titanic_44/usr/src/uts/common/fs/smbclnt/smbfs/ |
H A D | smbfs_vfsops.c | 337 smbfs_mount(vfs_t *vfsp, vnode_t *mvp, struct mounta *uap, cred_t *cr) in smbfs_mount() argument 354 if ((error = secpolicy_fs_mount(cr, mvp, vfsp)) != 0) in smbfs_mount() 427 mntzone = zone_find_by_path(refstr_value(vfsp->vfs_mntpt)); in smbfs_mount() 454 error = smbfs_mount_label_policy(vfsp, addr, ipvers, cr); in smbfs_mount() 461 vfs_setmntopt(vfsp, MNTOPT_RO, NULL, 0); in smbfs_mount() 509 if (vfs_optionisset(vfsp, MNTOPT_INTR, NULL)) in smbfs_mount() 511 if (vfs_optionisset(vfsp, MNTOPT_ACL, NULL)) in smbfs_mount() 572 vfs_setmntopt(vfsp, MNTOPT_NOXATTR, NULL, 0); in smbfs_mount() 578 vfs_setmntopt(vfsp, MNTOPT_NOACL, NULL, 0); in smbfs_mount() 592 vfsp->vfs_dev = smbfs_dev; in smbfs_mount() [all …]
|
/titanic_44/usr/src/uts/common/fs/dev/ |
H A D | sdev_vfsops.c | 186 sdev_mount(struct vfs *vfsp, struct vnode *mvp, struct mounta *uap, in sdev_mount() argument 199 if ((secpolicy_fs_mount(cr, mvp, vfsp) != 0) || in sdev_mount() 260 sdev_data = (struct sdev_data *)vfsp->vfs_data; in sdev_mount() 281 vfsp->vfs_mtime = ddi_get_time(); in sdev_mount() 307 dv = sdev_mkroot(vfsp, devdev, mvp, avp, cr); in sdev_mount() 309 vfsp->vfs_dev = devdev; in sdev_mount() 310 vfsp->vfs_data = (caddr_t)sdev_data; in sdev_mount() 311 vfsp->vfs_fstype = devtype; in sdev_mount() 312 vfsp->vfs_bsize = DEV_BSIZE; in sdev_mount() 313 vfsp->vfs_mtime = ddi_get_time(); in sdev_mount() [all …]
|
/titanic_44/usr/src/uts/common/fs/namefs/ |
H A D | namevfs.c | 205 vfs_t *vfsp; in nm_umountall() local 222 (vfsp = NMTOV(nodep)->v_vfsp) != NULL && in nm_umountall() 223 vfsp != &namevfs && (NMTOV(nodep)->v_flag & VROOT)) { in nm_umountall() 229 if (vn_vfswlock(vfsp->vfs_vnodecovered)) { in nm_umountall() 247 if ((error = dounmount(vfsp, 0, crp)) != 0) in nm_umountall() 306 nm_mount(vfs_t *vfsp, vnode_t *mvp, struct mounta *uap, cred_t *crp) in nm_mount() argument 379 if (secpolicy_fs_mount(crp, filevp, vfsp) != 0) { in nm_mount() 476 newvp->v_vfsp = vfsp; in nm_mount() 481 VFS_HOLD(vfsp); in nm_mount() 487 vfsp->vfs_vnodecovered = NULL; in nm_mount() [all …]
|
/titanic_44/usr/src/uts/common/fs/zfs/ |
H A D | zfs_vfsops.c | 78 static int zfs_mount(vfs_t *vfsp, vnode_t *mvp, struct mounta *uap, cred_t *cr); 79 static int zfs_umount(vfs_t *vfsp, int fflag, cred_t *cr); 80 static int zfs_mountroot(vfs_t *vfsp, enum whymountroot); 81 static int zfs_root(vfs_t *vfsp, vnode_t **vpp); 82 static int zfs_statvfs(vfs_t *vfsp, struct statvfs64 *statp); 83 static int zfs_vget(vfs_t *vfsp, vnode_t **vpp, fid_t *fidp); 84 static void zfs_freevfs(vfs_t *vfsp); 133 zfs_sync(vfs_t *vfsp, short flag, cred_t *cr) in zfs_sync() argument 151 if (vfsp != NULL) { in zfs_sync() 155 zfsvfs_t *zfsvfs = vfsp->vfs_data; in zfs_sync() [all …]
|
/titanic_44/usr/src/uts/common/fs/devfs/ |
H A D | devfs_vfsops.c | 177 devfs_mount(struct vfs *vfsp, struct vnode *mvp, struct mounta *uap, in devfs_mount() argument 187 if (secpolicy_fs_mount(cr, mvp, vfsp) != 0) in devfs_mount() 211 dv = dv_mkroot(vfsp, devfsdev); in devfs_mount() 217 devfs_data->devfs_vfsp = vfsp; in devfs_mount() 220 vfsp->vfs_data = (caddr_t)devfs_data; in devfs_mount() 221 vfsp->vfs_fstype = devfstype; in devfs_mount() 222 vfsp->vfs_dev = devfsdev; in devfs_mount() 223 vfsp->vfs_bsize = DEV_BSIZE; in devfs_mount() 224 vfsp->vfs_mtime = ddi_get_time(); in devfs_mount() 225 vfs_make_fsid(&vfsp->vfs_fsid, vfsp->vfs_dev, devfstype); in devfs_mount() [all …]
|
/titanic_44/usr/src/uts/common/fs/smbsrv/ |
H A D | smb_vfs.c | 41 smb_vfs_hold(smb_export_t *se, vfs_t *vfsp) in smb_vfs_hold() argument 47 if (se == NULL || vfsp == NULL) in smb_vfs_hold() 52 if ((smb_vfs = smb_vfs_find(se, vfsp)) != NULL) { in smb_vfs_hold() 59 if ((rc = VFS_ROOT(vfsp, &rootvp)) != 0) { in smb_vfs_hold() 70 smb_vfs->sv_vfsp = vfsp; in smb_vfs_hold() 91 smb_vfs_rele(smb_export_t *se, vfs_t *vfsp) in smb_vfs_rele() argument 95 ASSERT(vfsp); in smb_vfs_rele() 98 smb_vfs = smb_vfs_find(se, vfsp); in smb_vfs_rele() 143 smb_vfs_find(smb_export_t *se, vfs_t *vfsp) in smb_vfs_find() argument 150 if (smb_vfs->sv_vfsp == vfsp) in smb_vfs_find()
|
/titanic_44/usr/src/uts/common/fs/autofs/ |
H A D | auto_vfsops.c | 313 autofs_restrict_opts(struct vfs *vfsp, char *buf, size_t maxlen, size_t *curlen) in autofs_restrict_opts() argument 320 if (!vfs_optionisset(vfsp, restropts[0], NULL)) in autofs_restrict_opts() 327 if ((i == 0 || vfs_optionisset(vfsp, restropts[i], NULL)) && in autofs_restrict_opts() 347 auto_mount(vfs_t *vfsp, vnode_t *vp, struct mounta *uap, cred_t *cr) in auto_mount() argument 363 AUTOFS_DPRINT((4, "auto_mount: vfs %p vp %p\n", (void *)vfsp, in auto_mount() 366 if ((error = secpolicy_fs_mount(cr, vp, vfsp)) != 0) in auto_mount() 372 mntzone = zone_find_by_path(refstr_value(vfsp->vfs_mntpt)); in auto_mount() 437 fnip = vfstofni(vfsp); in auto_mount() 460 if (autofs_restrict_opts(vfsp, strbuff, sizeof (strbuff), &len) in auto_mount() 494 fnip->fi_mountvfs = vfsp; in auto_mount() [all …]
|
/titanic_44/usr/src/uts/common/fs/ctfs/ |
H A D | ctfs_root.c | 217 ctfs_mount(vfs_t *vfsp, vnode_t *mvp, struct mounta *uap, cred_t *cr) in ctfs_mount() argument 224 if (secpolicy_fs_mount(cr, mvp, vfsp) != 0) in ctfs_mount() 239 vfsp->vfs_bsize = DEV_BSIZE; in ctfs_mount() 240 vfsp->vfs_fstype = ctfs_fstype; in ctfs_mount() 245 vfs_make_fsid(&vfsp->vfs_fsid, dev, ctfs_fstype); in ctfs_mount() 246 vfsp->vfs_data = data; in ctfs_mount() 247 vfsp->vfs_dev = dev; in ctfs_mount() 267 vfsp, ctfs_ops_root, CTFS_INO_ROOT, dirent, ctfs_root_do_inode, in ctfs_mount() 279 ctfs_unmount(vfs_t *vfsp, int flag, struct cred *cr) in ctfs_unmount() argument 283 if (secpolicy_fs_unmount(cr, vfsp) != 0) in ctfs_unmount() [all …]
|
/titanic_44/usr/src/uts/common/fs/tmpfs/ |
H A D | tmp_vfsops.c | 230 struct vfs *vfsp, in tmp_mount() argument 245 if ((error = secpolicy_fs_mount(cr, mvp, vfsp)) != 0) in tmp_mount() 262 vfs_setresource(vfsp, "swap", 0); in tmp_mount() 269 if (vfs_optionisset(vfsp, MNTOPT_RO, NULL)) { in tmp_mount() 278 if (vfs_optionisset(vfsp, "size", &sizestr)) { in tmp_mount() 312 tm->tm_vfsp = vfsp; in tmp_mount() 315 vfsp->vfs_data = (caddr_t)tm; in tmp_mount() 316 vfsp->vfs_fstype = tmpfsfstype; in tmp_mount() 317 vfsp->vfs_dev = tm->tm_dev; in tmp_mount() 318 vfsp->vfs_bsize = PAGESIZE; in tmp_mount() [all …]
|