Lines Matching defs:vfs
37 #include <sys/vfs.h>
69 vfs_t vfs;
72 if (mdb_vread(&vfs, sizeof (vfs), wsp->walk_addr) == -1) {
77 status = wsp->walk_callback(wsp->walk_addr, &vfs, wsp->walk_cbdata);
79 if (vfs.vfs_next == wsp->walk_data)
82 wsp->walk_addr = (uintptr_t)vfs.vfs_next;
88 * Utility routine to read in a filesystem name given a vfs pointer. If
89 * no vfssw entry for the vfs is available (as is the case with some pseudo-
97 vfs_t vfs;
102 if (mdb_vread(&vfs, sizeof (vfs), vfsp) == -1) {
103 mdb_warn("failed to read vfs %p", vfsp);
113 * vfssw is an array; we need vfssw[vfs.vfs_fstype].
116 vfssw_sym.st_value + (sizeof (struct vfssw) * vfs.vfs_fstype))
118 mdb_warn("failed to read vfssw index %d", vfs.vfs_fstype);
122 if (vfs.vfs_fstype != 0) {
165 mdb_warn("unknown filesystem type for vfs %p", vfsp);
182 vfs_t vfs;
195 if (mdb_walk_dcmd("vfs", "fsinfo", argc, argv) == -1) {
210 if (mdb_vread(&vfs, sizeof (vfs), addr) == -1) {
215 if ((len = mdb_read_refstr((uintptr_t)vfs.vfs_mntpt, buf,
237 if (mdb_read_refstr((uintptr_t)vfs.vfs_resource, buf,
248 size = vfs.vfs_mntopts.mo_count * sizeof (mntopt_t);
252 (uintptr_t)vfs.vfs_mntopts.mo_list) == -1) {
253 mdb_warn("failed to read mntopts %p", vfs.vfs_mntopts.mo_list);
257 for (i = 0; i < vfs.vfs_mntopts.mo_count; i++) {
289 if ((vfs.vfs_zone != NULL) &&
290 ((uintptr_t)vfs.vfs_zone != global_zone)) {
293 if (mdb_vread(&z, sizeof (z), (uintptr_t)vfs.vfs_zone) == -1) {