Home
last modified time | relevance | path

Searched refs:vfs (Results 1 – 25 of 138) sorted by relevance

123456

/illumos-gate/usr/src/contrib/ast/src/lib/libast/comp/
H A Dstatvfs.c67 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/lib/smbclnt/libfknsmb/common/sys/
H A Dvfs.h195 typedef struct vfs { struct
196 struct vfs *vfs_next; /* next VFS in VFS list */ argument
197 struct vfs *vfs_prev; /* prev VFS in VFS list */ argument
210 struct vfs *vfs_list; /* sync list pointer */ argument
211 struct vfs *vfs_hash; /* hash list pointer */ argument
226 struct vfs *vfs_zone_next; /* next VFS visible in zone */ argument
227 struct vfs *vfs_zone_prev; /* prev VFS visible in zone */ argument
241 typedef struct vfs vfs_t;
483 struct vfs **);
484 int dounmount(struct vfs *, int, cred_t *);
[all …]
/illumos-gate/usr/src/uts/common/sys/
H A Dvfs.h198 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
476 struct vfs **);
477 int dounmount(struct vfs *, int, cred_t *);
478 int vfs_lock(struct vfs *);
[all …]
H A Dpolicy.h70 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 Dlofs.c47 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 Dvfs.h83 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 Dsmbfs.c90 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 Dlofs_info.h62 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 Dufs_inode.h710 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 Dhsfs_impl.h48 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 Dvfs.c69 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 Ddumpfstab.c97 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 Ddevfs_vfsops.c65 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 Dnfs.c910 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/test/os-tests/tests/sdevfs/
H A Dsdevfs_eisdir.c35 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 Dnetstrategy.c109 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 Dsdev_vfsops.c84 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 Dfake_vfs.c52 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 Dmntinfo.c271 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/nfs/
H A Drnode4.h398 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 Drnode.h371 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 Dvfs.c99 extern vopstats_t *get_fstype_vopstats(struct vfs *, struct vfssw *);
100 extern vsk_anchor_t *get_vskstat_anchor(struct vfs *);
106 static void vfs_freemnttab(struct vfs *);
122 struct vfs *mip_vfsp;
141 static struct vfs root;
142 static struct vfs devices;
143 static struct vfs dev;
144 struct vfs *rootvfs = &root; /* pointer to root vfs; head of VFS list. */
959 lofi_add(const char *fsname, struct vfs *vfsp, in lofi_add()
1033 lofi_remove(struct vfs *vfsp) in lofi_remove()
[all …]
/illumos-gate/usr/src/uts/common/fs/lofs/
H A Dlofs_vfsops.c153 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 Dtmp_vfsops.c62 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 Dhsfs_vfsops.c223 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 …]

123456