/illumos-gate/usr/src/contrib/ast/src/lib/libast/comp/ |
H A D | statvfs.c | 67 us2v(register struct statfs* ufs, register struct stat* st, register struct statvfs* vfs) 69 memset(vfs, 0, sizeof(*vfs)); 70 vfs->f_bsize = vfs->f_frsize = ufs->f_bsize; 71 vfs->f_blocks = ufs->f_blocks; 72 vfs->f_bfree = ufs->f_bfree; 73 vfs->f_bavail = 79 vfs->f_files = ufs->f_files; 80 vfs->f_ffree = ufs->f_ffree; 81 vfs->f_favail = (ufs->f_ffree > 10) ? (ufs->f_ffree - 10) : 0; 82 vfs->f_fsid = st->st_dev; [all …]
|
/illumos-gate/usr/src/uts/common/sys/ |
H A D | vfs.h | 198 typedef struct vfs { struct 199 struct vfs *vfs_next; /* next VFS in VFS list */ argument 200 struct vfs *vfs_prev; /* prev VFS in VFS list */ argument 213 struct vfs *vfs_list; /* sync list pointer */ argument 214 struct vfs *vfs_hash; /* hash list pointer */ argument 229 struct vfs *vfs_zone_next; /* next VFS visible in zone */ argument 230 struct vfs *vfs_zone_prev; /* prev VFS visible in zone */ argument 481 struct vfs **); 482 int dounmount(struct vfs *, int, cred_t *); 483 int vfs_lock(struct vfs *); [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() 72 if (lofsfstype != vfs.vfs_fstype) { 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() 96 if (lofsfstype != vfs.vfs_fstype) { in lnode_walk_init() 97 vfsp = (uintptr_t)vfs.vfs_next; in lnode_walk_init() 101 (uintptr_t)vfs.vfs_data); in lnode_walk_init() [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 131 int (*vfs_mount)(struct vfs *, struct vnode *, struct mounta *, 133 int (*vfs_unmount)(struct vfs *, struct cred *); 134 int (*vfs_root)(struct vfs *, struct vnode **); 135 int (*vfs_statvfs)(struct vfs *, struct statvfs64 *); 136 int (*vfs_sync)(struct vfs *, short, struct cred *); 137 int (*vfs_vget)(struct vfs *, struct vnode **, struct fid *); 138 int (*vfs_mountroot)(struct vfs *, enum whymountroot); 139 int (*vfs_swapvp)(struct vfs *, struct vnode **, char *); [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 95 if (cbd->vfsops && cbd->vfsops != (uintptr_t)vfs->vfs_op) { in smbfs_vfs_cb() 105 mdb_printf(" %-p", (uintptr_t)vfs->vfs_data); in smbfs_vfs_cb() 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() 167 SMBFS_OBJ_FETCH(addr, vfs_t, vfs, DCMD_ERR); in smbfs_vfs_dcmd() 168 smbfs_vfs_cb(addr, vfs, cbd); in smbfs_vfs_dcmd() [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 */ 834 extern int ufs_iget(struct vfs *, ino_t, struct inode **, cred_t *); 835 extern int ufs_iget_alloced(struct vfs *, ino_t, struct inode **, 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 *); 946 extern void ufs_thread_start(struct ufs_q *, void (*)(), struct vfs *); [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() 77 status = wsp->walk_callback(wsp->walk_addr, &vfs, wsp->walk_cbdata); 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() 116 vfssw_sym.st_value + (sizeof (struct vfssw) * vfs.vfs_fstype)) in read_fsname() 118 mdb_warn("failed to read vfssw index %d", vfs.vfs_fstype); in read_fsname() 122 if (vfs.vfs_fstype != 0) { in read_fsname() [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/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() 938 (uintptr_t)&vfs->vfs_mntpt->rs_string) == -1) in nfs_vfs_dcmd() 945 (uintptr_t)&vfs->vfs_resource->rs_string) == -1) { in nfs_vfs_dcmd() 956 mdb_printf("vfs_flags: %b\n", vfs->vfs_flag, vfs_flags); in nfs_vfs_dcmd() 958 for (i = 0; i < vfs->vfs_mntopts.mo_count; i++) { in nfs_vfs_dcmd() 959 uintptr_t a = (uintptr_t)(vfs->vfs_mntopts.mo_list + i); in nfs_vfs_dcmd() 991 if (nfs4_ops == (uintptr_t)vfs->vfs_op) { in nfs_vfs_dcmd() [all …]
|
/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/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/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/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/cmd/svr4pkg/libinst/ |
H A D | mntinfo.c | 271 already_mounted(struct vfstab *vfs, int is_local_host, char *client_path, in already_mounted() argument 303 if (strcmp(fs_tab[i]->remote_name, vfs->vfs_special) == 0) { in already_mounted() 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() [all …]
|
/illumos-gate/usr/src/uts/common/fs/ |
H A D | vfs.c | 100 extern vopstats_t *get_fstype_vopstats(struct vfs *, struct vfssw *); 101 extern vsk_anchor_t *get_vskstat_anchor(struct vfs *); 107 static void vfs_freemnttab(struct vfs *); 123 struct vfs *mip_vfsp; 142 static struct vfs root; 143 static struct vfs devices; 144 static struct vfs dev; 145 struct vfs *rootvfs = &root; /* pointer to root vfs; head of VFS list. */ 979 lofi_add(const char *fsname, struct vfs *vfsp, in lofi_add() 1053 lofi_remove(struct vfs *vfsp) in lofi_remove() [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/lib/smbsrv/libfksmbsrv/common/ |
H A D | fake_vfs.c | 53 static struct vfs fake_rootvfs; 55 struct vfs *rootvfs = NULL; 129 struct vfs * 191 vfs_getmntpoint(const struct vfs *vfsp) in vfs_getmntpoint()
|
/illumos-gate/usr/src/uts/common/fs/lofs/ |
H A D | lofs_vfsops.c | 154 lo_mount(struct vfs *vfsp, struct vnode *vp, struct mounta *uap, in lo_mount() 421 lo_unmount(struct vfs *vfsp, int flag, struct cred *cr) in lo_unmount() 454 lo_root(struct vfs *vfsp, struct vnode **vpp) in lo_root() 483 lo_statvfs(register struct vfs *vfsp, struct statvfs64 *sbp) in lo_statvfs() 510 lo_sync(struct vfs *vfsp, short flag, struct cred *cr) in lo_sync() 544 lo_vget(struct vfs *vfsp, struct vnode **vpp, struct fid *fidp) in lo_vget() 562 lo_freevfs(struct vfs *vfsp) in lo_freevfs()
|
H A D | lofs_subr.c | 103 static struct vfs *makelfsnode(struct vfs *, struct loinfo *); 104 static struct lfsnode *lfsfind(struct vfs *, struct loinfo *); 258 struct vfs *vfsp; in makelonode() 316 static struct vfs * 317 makelfsnode(struct vfs *vfsp, struct loinfo *li) in makelfsnode() 423 lfsfind(struct vfs *vfsp, struct loinfo *li) in lfsfind() 462 struct vfs * 463 lo_realvfs(struct vfs *vfsp, struct vnode **realrootvpp) in lo_realvfs() 649 struct vfs *vfsp; in freelonode()
|
/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 *); 411 tmp_unmount(struct vfs *vfsp, int flag, struct cred *cr) in tmp_unmount() 554 tmp_root(struct vfs *vfsp, struct vnode **vpp) in tmp_root() 569 tmp_statvfs(struct vfs *vfsp, struct statvfs64 *sbp) in tmp_statvfs() 673 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, 225 static int hsfs_unmount(struct vfs *vfsp, int, struct cred *cr); 226 static int hsfs_root(struct vfs *vfsp, struct vnode **vpp); 227 static int hsfs_statvfs(struct vfs *vfsp, struct statvfs64 *sbp); 228 static int hsfs_vget(struct vfs *vfsp, struct vnode **vpp, struct fid *fidp); 229 static int hsfs_mountroot(struct vfs *, enum whymountroot); 231 static int hs_mountfs(struct vfs *vfsp, dev_t dev, char *path, 233 static int hs_getrootvp(struct vfs *vfsp, struct hsfs *fsp, size_t pathsize); 246 static int hs_getmdev(struct vfs *, char *fspec, int flags, dev_t *pdev, 286 hsfs_mount(struct vfs *vfsp, struct vnode *mvp, in hsfs_mount() [all …]
|