/illumos-gate/usr/src/contrib/ast/src/lib/libast/comp/ |
H A D | statvfs.c | 69 memset(vfs, 0, sizeof(*vfs)); 70 vfs->f_bsize = vfs->f_frsize = ufs->f_bsize; 73 vfs->f_bavail = 83 strlcpy(vfs->f_basetype, FS_default, sizeof(vfs->f_basetype) - 1); 85 strlcpy(vfs->f_fstr, vfs->f_basetype, sizeof(vfs->f_fstr) - 1); 121 memset(vfs, 0, sizeof(*vfs)); 122 vfs->f_bsize = vfs->f_frsize = 134 strlcpy(vfs->f_basetype, FS_default, sizeof(vfs->f_basetype)); 136 strlcpy(vfs->f_fstr, vfs->f_basetype, sizeof(vfs->f_fstr)); 146 s2v(&st, vfs); [all …]
|
/illumos-gate/usr/src/lib/smbclnt/libfknsmb/common/sys/ |
H A D | vfs.h | 195 typedef struct vfs { struct 241 typedef struct vfs vfs_t; 483 struct vfs **); 485 int vfs_lock(struct vfs *); 486 int vfs_rlock(struct vfs *); 489 void vfs_unlock(struct vfs *); 490 int vfs_lock_held(struct vfs *); 496 void vfs_remove(struct vfs *); 529 void vfs_delmip(struct vfs *); 533 struct vfs *getvfs(fsid_t *); [all …]
|
/illumos-gate/usr/src/uts/common/sys/ |
H A D | vfs.h | 198 typedef struct vfs { struct 476 struct vfs **); 478 int vfs_lock(struct vfs *); 479 int vfs_rlock(struct vfs *); 482 void vfs_unlock(struct vfs *); 483 int vfs_lock_held(struct vfs *); 489 void vfs_remove(struct vfs *); 522 void vfs_delmip(struct vfs *); 526 struct vfs *getvfs(fsid_t *); 527 struct vfs *vfs_dev2vfsp(dev_t); [all …]
|
H A D | policy.h | 70 struct vfs; 95 int secpolicy_fs_config(const cred_t *, const struct vfs *); 96 int secpolicy_fs_linkdir(const cred_t *, const struct vfs *); 97 int secpolicy_fs_minfree(const cred_t *, const struct vfs *); 98 int secpolicy_fs_mount(cred_t *, vnode_t *, struct vfs *); 99 int secpolicy_fs_quota(const cred_t *, const struct vfs *); 100 int secpolicy_fs_unmount(cred_t *, struct vfs *); 176 void secpolicy_fs_mount_clearopts(cred_t *, struct vfs *);
|
/illumos-gate/usr/src/cmd/mdb/common/modules/lofs/ |
H A D | lofs.c | 47 struct vfs vfs; in lnode_walk_init() local 71 (void) mdb_vread(&vfs, sizeof (vfs), vfsp); in lnode_walk_init() 73 vfsp = (uintptr_t)vfs.vfs_next; in lnode_walk_init() 77 (uintptr_t)vfs.vfs_data); in lnode_walk_init() 79 vfsp = (uintptr_t)vfs.vfs_next; in lnode_walk_init() 95 (void) mdb_vread(&vfs, sizeof (vfs), vfsp); in lnode_walk_init() 101 (uintptr_t)vfs.vfs_data); in lnode_walk_init() 114 vfsp = (uintptr_t)vfs.vfs_next; in lnode_walk_init() 129 vfs.vfs_data); in lnode_walk_init() 232 vfs_t vfs; in lnode2dev() local [all …]
|
/illumos-gate/usr/src/ucbhead/sys/ |
H A D | vfs.h | 83 typedef struct vfs { struct 84 struct vfs *vfs_next; /* next VFS in VFS list */ argument 133 int (*vfs_unmount)(struct vfs *, struct cred *); 134 int (*vfs_root)(struct vfs *, struct vnode **); 186 void vfs_add(vnode_t *, struct vfs *, int); 187 void vfs_remove(struct vfs *); 188 int vfs_lock(struct vfs *); 189 void vfs_unlock(struct vfs *); 190 struct vfs *getvfs(fsid_t *); 191 struct vfs *vfs_devsearch(dev_t); [all …]
|
/illumos-gate/usr/src/cmd/mdb/common/modules/smbfs/ |
H A D | smbfs.c | 90 const vfs_t *vfs = data; in smbfs_vfs_cb() local 110 ta = (uintptr_t)vfs->vfs_mntpt; in smbfs_vfs_cb() 119 (uintptr_t)vfs->vfs_data) == -1) { in smbfs_vfs_cb() 121 (uintptr_t)vfs->vfs_data); in smbfs_vfs_cb() 137 vfs_t *vfs; in smbfs_vfs_dcmd() local 166 vfs = mdb_alloc(sizeof (*vfs), UM_SLEEP | UM_GC); in smbfs_vfs_dcmd() 168 smbfs_vfs_cb(addr, vfs, cbd); in smbfs_vfs_dcmd() 297 vfs_t vfs; in vfs_walk_step() local 300 if (mdb_vread(&vfs, sizeof (vfs), wsp->walk_addr) == -1) { in vfs_walk_step() 307 if (vfs.vfs_next == wsp->walk_data) in vfs_walk_step() [all …]
|
/illumos-gate/usr/src/uts/common/sys/fs/ |
H A D | lofs_info.h | 62 struct vfs *li_realvfs; /* real vfs of mount */ 63 struct vfs *li_mountvfs; /* loopback vfs */ 103 struct vfs *lfs_realvfs; /* real vfs */ 105 struct vfs lfs_vfs; /* new loopback vfs */ 111 extern struct vfs *lo_realvfs(struct vfs *, struct vnode **);
|
H A D | ufs_inode.h | 710 struct vfs *vfs_vfs; /* back link */ 867 extern void sbupdate(struct vfs *); 905 extern void ufs_checkclean(struct vfs *); 937 extern void ufs_thread_delete(struct vfs *); 938 extern void ufs_delete_drain(struct vfs *, int, int); 941 extern void ufs_idle_drain(struct vfs *); 944 extern void ufs_thread_reclaim(struct vfs *); 959 extern int ufs_reconcile_fs(struct vfs *, struct ufsvfs *, int); 961 extern int ufs_flush(struct vfs *); 981 extern int ufs_si_free(si_t *, struct vfs *, cred_t *); [all …]
|
H A D | hsfs_impl.h | 48 uint_t lbn, uint_t off, struct vfs *vfsp); 50 extern int hs_remakenode(uint_t lbn, uint_t off, struct vfs *vfsp, 57 struct vfs *vfsp); 73 extern int hs_synchash(struct vfs *vfsp);
|
/illumos-gate/usr/src/cmd/mdb/common/modules/genunix/ |
H A D | vfs.c | 69 vfs_t vfs; in vfs_walk_step() local 72 if (mdb_vread(&vfs, sizeof (vfs), wsp->walk_addr) == -1) { in vfs_walk_step() 79 if (vfs.vfs_next == wsp->walk_data) in vfs_walk_step() 82 wsp->walk_addr = (uintptr_t)vfs.vfs_next; in vfs_walk_step() 97 vfs_t vfs; in read_fsname() local 102 if (mdb_vread(&vfs, sizeof (vfs), vfsp) == -1) { in read_fsname() 122 if (vfs.vfs_fstype != 0) { in read_fsname() 182 vfs_t vfs; in fsinfo() local 210 if (mdb_vread(&vfs, sizeof (vfs), addr) == -1) { in fsinfo() 289 if ((vfs.vfs_zone != NULL) && in fsinfo() [all …]
|
/illumos-gate/usr/src/cmd/backup/dump/ |
H A D | dumpfstab.c | 97 struct vfstab vfs; local 115 while ((status = getvfsent(tp, &vfs)) == 0) { 116 if (vfs.vfs_fstype == (char *)0 || 117 strcmp(vfs.vfs_fstype, MNTTYPE_42) != 0) 121 mnt->mnt_fsname = mntstrdup(vfs.vfs_special); 122 mnt->mnt_dir = mntstrdup(vfs.vfs_mountp); 123 mnt->mnt_type = mntstrdup(vfs.vfs_fstype); 124 mnt->mnt_opts = mntstrdup(vfs.vfs_mntopts);
|
/illumos-gate/usr/src/uts/common/fs/devfs/ |
H A D | devfs_vfsops.c | 65 static int devfs_mount(struct vfs *, struct vnode *, struct mounta *, 67 static int devfs_unmount(struct vfs *, int, struct cred *); 68 static int devfs_root(struct vfs *, struct vnode **); 69 static int devfs_statvfs(struct vfs *, struct statvfs64 *); 70 static int devfs_mountroot(struct vfs *, enum whymountroot); 177 devfs_mount(struct vfs *vfsp, struct vnode *mvp, struct mounta *uap, in devfs_mount() 244 devfs_unmount(struct vfs *vfsp, int flag, struct cred *cr) in devfs_unmount() 253 devfs_root(struct vfs *vfsp, struct vnode **vpp) in devfs_root() 267 devfs_statvfs(struct vfs *vfsp, struct statvfs64 *sbp) in devfs_statvfs() 307 devfs_mountroot(struct vfs *vfsp, enum whymountroot why) in devfs_mountroot()
|
/illumos-gate/usr/src/cmd/mdb/common/modules/nfs/ |
H A D | nfs.c | 910 vfs_t *vfs; in nfs_vfs_dcmd() local 926 vfs = mdb_alloc(sizeof (*vfs), UM_SLEEP | UM_GC); in nfs_vfs_dcmd() 928 if (mdb_vread(vfs, sizeof (*vfs), addr) == -1) { in nfs_vfs_dcmd() 934 addr, vfs->vfs_data, vfs->vfs_op); in nfs_vfs_dcmd() 991 if (nfs4_ops == (uintptr_t)vfs->vfs_op) { in nfs_vfs_dcmd() 992 nfs_print_mi4((uintptr_t)VFTOMI4(vfs), 1); in nfs_vfs_dcmd() 1001 if (nfs3_ops != (uintptr_t)vfs->vfs_op) in nfs_vfs_dcmd() 1004 nfs_print_mi((uintptr_t)VFTOMI(vfs), vers); in nfs_vfs_dcmd() 1022 vfs_t *vfs; in nfs4_diag_dcmd() local 1040 vfs = mdb_alloc(sizeof (*vfs), UM_SLEEP | UM_GC); in nfs4_diag_dcmd() [all …]
|
/illumos-gate/usr/src/test/os-tests/tests/sdevfs/ |
H A D | sdevfs_eisdir.c | 35 struct statvfs vfs; in main() local 49 if (statvfs(SD_TEST_DIR, &vfs) != 0) { in main() 55 if (strncmp("dev", vfs.f_basetype, FSTYPSZ) != 0) { in main()
|
/illumos-gate/usr/src/cmd/cmd-inet/sbin/netstrategy/ |
H A D | netstrategy.c | 109 static struct statvfs vfs; in get_root_fstype() local 112 if (statvfs("/", &vfs) < 0) { in get_root_fstype() 115 if (strncmp(vfs.f_basetype, "nfs", sizeof ("nfs") - 1) == 0) in get_root_fstype() 116 vfs.f_basetype[sizeof ("nfs") - 1] = '\0'; in get_root_fstype() 117 return (vfs.f_basetype); in get_root_fstype()
|
/illumos-gate/usr/src/uts/common/fs/dev/ |
H A D | sdev_vfsops.c | 84 static int sdev_mount(struct vfs *, struct vnode *, struct mounta *, 86 static int sdev_unmount(struct vfs *, int, struct cred *); 87 static int sdev_root(struct vfs *, struct vnode **); 88 static int sdev_statvfs(struct vfs *, struct statvfs64 *); 196 sdev_mount(struct vfs *vfsp, struct vnode *mvp, struct mounta *uap, in sdev_mount() 380 sdev_unmount(struct vfs *vfsp, int flag, struct cred *cr) in sdev_unmount() 453 sdev_root(struct vfs *vfsp, struct vnode **vpp) in sdev_root() 466 sdev_statvfs(struct vfs *vfsp, struct statvfs64 *sbp) in sdev_statvfs()
|
/illumos-gate/usr/src/lib/smbsrv/libfksmbsrv/common/ |
H A D | fake_vfs.c | 52 static struct vfs fake_rootvfs; 54 struct vfs *rootvfs = NULL; 118 struct vfs * 178 vfs_getmntpoint(const struct vfs *vfsp) in vfs_getmntpoint()
|
/illumos-gate/usr/src/cmd/svr4pkg/libinst/ |
H A D | mntinfo.c | 894 struct vfstab *vfs = &vfsbuf; in get_mntinfo() local 930 while (!getvfsent(pp, vfs)) { in get_mntinfo() 941 is_remote_src(vfs->vfs_special)) && in get_mntinfo() 942 strcmp(vfs->vfs_fstype, MNTTYPE_LOFS) != in get_mntinfo() 950 if (strcmp(vfs->vfs_mountp, "/") == 0) { in get_mntinfo() 956 install_root, vfs->vfs_mountp); in get_mntinfo() 964 strcmp(path_part(vfs->vfs_special), in get_mntinfo() 969 link_name = strdup(path_part(vfs->vfs_special)); in get_mntinfo() 970 mnt_stat = already_mounted(vfs, in get_mntinfo() 975 mod_existing(vfs, match_mount, in get_mntinfo() [all …]
|
/illumos-gate/usr/src/uts/common/nfs/ |
H A D | rnode4.h | 398 extern rnode4_t *r4find(r4hashq_t *, nfs4_sharedfh_t *, struct vfs *); 399 extern rnode4_t *r4find_unlocked(nfs4_sharedfh_t *, struct vfs *); 400 extern void r4flush(struct vfs *, cred_t *); 401 extern void destroy_rtable4(struct vfs *, cred_t *); 402 extern int check_rtable4(struct vfs *); 409 extern vnode_t *makenfs4node(nfs4_sharedfh_t *, nfs4_ga_res_t *, struct vfs *, 424 extern void nfs4_rnode_invalidate(struct vfs *);
|
H A D | rnode.h | 371 extern vnode_t *makenfsnode(fhandle_t *, struct nfsfattr *, struct vfs *, 373 extern vnode_t *makenfs3node_va(nfs_fh3 *, vattr_t *, struct vfs *, hrtime_t, 375 extern vnode_t *makenfs3node(nfs_fh3 *, fattr3 *, struct vfs *, hrtime_t, 379 extern int check_rtable(struct vfs *); 380 extern void destroy_rtable(struct vfs *, cred_t *); 381 extern void rflush(struct vfs *, cred_t *);
|
/illumos-gate/usr/src/uts/common/fs/ |
H A D | vfs.c | 122 struct vfs *mip_vfsp; 143 static struct vfs dev; 1094 struct vfs *vfsp; in domount() 3075 struct vfs *vfsp; in vfs_unmountall() 3429 struct vfs **hp; in vfs_hash_add() 3656 struct vfs * 3659 struct vfs *vfsp; in getvfs() 3713 struct vfs *vfsp; in vfs_devismounted() 3736 struct vfs * 3739 struct vfs *vfsp; in vfs_dev2vfsp() [all …]
|
/illumos-gate/usr/src/uts/common/fs/lofs/ |
H A D | lofs_vfsops.c | 153 lo_mount(struct vfs *vfsp, in lo_mount() 422 lo_unmount(struct vfs *vfsp, int flag, struct cred *cr) in lo_unmount() 455 lo_root(struct vfs *vfsp, struct vnode **vpp) in lo_root() 484 lo_statvfs(register struct vfs *vfsp, struct statvfs64 *sbp) in lo_statvfs() 511 lo_sync(struct vfs *vfsp, in lo_sync() 525 lo_vget(struct vfs *vfsp, struct vnode **vpp, struct fid *fidp) in lo_vget() 543 lo_freevfs(struct vfs *vfsp) in lo_freevfs()
|
/illumos-gate/usr/src/uts/common/fs/tmpfs/ |
H A D | tmp_vfsops.c | 62 static int tmp_mount(struct vfs *, struct vnode *, 64 static int tmp_unmount(struct vfs *, int, struct cred *); 65 static int tmp_root(struct vfs *, struct vnode **); 66 static int tmp_statvfs(struct vfs *, struct statvfs64 *); 67 static int tmp_vget(struct vfs *, struct vnode **, struct fid *); 410 tmp_unmount(struct vfs *vfsp, int flag, struct cred *cr) in tmp_unmount() 553 tmp_root(struct vfs *vfsp, struct vnode **vpp) in tmp_root() 568 tmp_statvfs(struct vfs *vfsp, struct statvfs64 *sbp) in tmp_statvfs() 672 tmp_vget(struct vfs *vfsp, struct vnode **vpp, struct fid *fidp) in tmp_vget()
|
/illumos-gate/usr/src/uts/common/fs/hsfs/ |
H A D | hsfs_vfsops.c | 223 static int hsfs_mount(struct vfs *vfsp, struct vnode *mvp, 226 static int hsfs_root(struct vfs *vfsp, struct vnode **vpp); 229 static int hsfs_mountroot(struct vfs *, enum whymountroot); 231 static int hs_mountfs(struct vfs *vfsp, dev_t dev, char *path, 286 hsfs_mount(struct vfs *vfsp, struct vnode *mvp, in hsfs_mount() 367 struct vfs *vfsp, in hsfs_unmount() 435 hsfs_root(struct vfs *vfsp, struct vnode **vpp) in hsfs_root() 444 hsfs_statvfs(struct vfs *vfsp, struct statvfs64 *sbp) in hsfs_statvfs() 569 struct vfs *vfsp, in hs_mountfs() 955 struct vfs *vfsp, in hs_getrootvp() [all …]
|