Home
last modified time | relevance | path

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

123456

/titanic_41/usr/src/lib/libast/common/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 …]
/titanic_41/usr/src/uts/common/sys/
H A Dvfs.h203 typedef struct vfs { struct
204 struct vfs *vfs_next; /* next VFS in VFS list */ argument
205 struct vfs *vfs_prev; /* prev VFS in VFS list */ argument
225 struct vfs *vfs_list; /* sync list pointer */ argument
226 struct vfs *vfs_hash; /* hash list pointer */ argument
241 struct vfs *vfs_zone_next; /* next VFS visible in zone */ argument
242 struct vfs *vfs_zone_prev; /* prev VFS visible in zone */ argument
488 struct vfs **);
489 int dounmount(struct vfs *, int, cred_t *);
490 int vfs_lock(struct vfs *);
[all …]
H A Dpolicy.h69 struct vfs;
94 int secpolicy_fs_config(const cred_t *, const struct vfs *);
95 int secpolicy_fs_linkdir(const cred_t *, const struct vfs *);
96 int secpolicy_fs_minfree(const cred_t *, const struct vfs *);
97 int secpolicy_fs_mount(cred_t *, vnode_t *, struct vfs *);
98 int secpolicy_fs_quota(const cred_t *, const struct vfs *);
99 int secpolicy_fs_unmount(cred_t *, struct vfs *);
171 void secpolicy_fs_mount_clearopts(cred_t *, struct vfs *);
/titanic_41/usr/src/cmd/mdb/common/modules/lofs/
H A Dlofs.c49 struct vfs vfs; in lnode_walk_init() local
73 (void) mdb_vread(&vfs, sizeof (vfs), vfsp); in lnode_walk_init()
74 if (lofsfstype != vfs.vfs_fstype) { in lnode_walk_init()
75 vfsp = (uintptr_t)vfs.vfs_next; in lnode_walk_init()
79 (uintptr_t)vfs.vfs_data); in lnode_walk_init()
81 vfsp = (uintptr_t)vfs.vfs_next; in lnode_walk_init()
97 (void) mdb_vread(&vfs, sizeof (vfs), vfsp); in lnode_walk_init()
98 if (lofsfstype != vfs.vfs_fstype) { in lnode_walk_init()
99 vfsp = (uintptr_t)vfs.vfs_next; in lnode_walk_init()
103 (uintptr_t)vfs.vfs_data); in lnode_walk_init()
[all …]
/titanic_41/usr/src/ucbhead/sys/
H A Dvfs.h85 typedef struct vfs { struct
86 struct vfs *vfs_next; /* next VFS in VFS list */ argument
133 int (*vfs_mount)(struct vfs *, struct vnode *, struct mounta *,
135 int (*vfs_unmount)(struct vfs *, struct cred *);
136 int (*vfs_root)(struct vfs *, struct vnode **);
137 int (*vfs_statvfs)(struct vfs *, struct statvfs64 *);
138 int (*vfs_sync)(struct vfs *, short, struct cred *);
139 int (*vfs_vget)(struct vfs *, struct vnode **, struct fid *);
140 int (*vfs_mountroot)(struct vfs *, enum whymountroot);
141 int (*vfs_swapvp)(struct vfs *, struct vnode **, char *);
[all …]
/titanic_41/usr/src/cmd/mdb/common/modules/smbfs/
H A Dsmbfs.c84 const vfs_t *vfs = data; in smbfs_vfs_cb() local
89 if (cbd->vfsops && cbd->vfsops != (uintptr_t)vfs->vfs_op) { in smbfs_vfs_cb()
99 mdb_printf(" %-p", (uintptr_t)vfs->vfs_data); in smbfs_vfs_cb()
104 ta = (uintptr_t)vfs->vfs_mntpt; in smbfs_vfs_cb()
113 (uintptr_t)vfs->vfs_data) == -1) { in smbfs_vfs_cb()
115 (uintptr_t)vfs->vfs_data); in smbfs_vfs_cb()
131 vfs_t *vfs; in smbfs_vfs_dcmd() local
160 vfs = mdb_alloc(sizeof (*vfs), UM_SLEEP | UM_GC); in smbfs_vfs_dcmd()
161 SMBFS_OBJ_FETCH(addr, vfs_t, vfs, DCMD_ERR); in smbfs_vfs_dcmd()
162 smbfs_vfs_cb(addr, vfs, cbd); in smbfs_vfs_dcmd()
/titanic_41/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 Dcachefs_fs.h1233 void cachefs_log_mount(cachefscache_t *, int, struct vfs *,
1235 void cachefs_log_umount(cachefscache_t *, int, struct vfs *);
1236 void cachefs_log_getpage(cachefscache_t *, int, struct vfs *, fid_t *, ino64_t,
1238 void cachefs_log_readdir(cachefscache_t *, int, struct vfs *, fid_t *, ino64_t,
1240 void cachefs_log_readlink(cachefscache_t *, int, struct vfs *,
1242 void cachefs_log_remove(cachefscache_t *, int, struct vfs *, fid_t *, ino64_t,
1244 void cachefs_log_rmdir(cachefscache_t *, int, struct vfs *, fid_t *, ino64_t,
1246 void cachefs_log_truncate(cachefscache_t *, int, struct vfs *, fid_t *, ino64_t,
1248 void cachefs_log_putpage(cachefscache_t *, int, struct vfs *, fid_t *, ino64_t,
1250 void cachefs_log_create(cachefscache_t *, int, struct vfs *, fid_t *, ino64_t,
[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);
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 …]
/titanic_41/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 …]
/titanic_41/usr/src/cmd/backup/dump/
H A Ddumpfstab.c99 struct vfstab vfs; local
117 while ((status = getvfsent(tp, &vfs)) == 0) {
118 if (vfs.vfs_fstype == (char *)0 ||
119 strcmp(vfs.vfs_fstype, MNTTYPE_42) != 0)
123 mnt->mnt_fsname = mntstrdup(vfs.vfs_special);
124 mnt->mnt_dir = mntstrdup(vfs.vfs_mountp);
125 mnt->mnt_type = mntstrdup(vfs.vfs_fstype);
126 mnt->mnt_opts = mntstrdup(vfs.vfs_mntopts);
/titanic_41/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()
/titanic_41/usr/src/lib/libbc/inc/include/sys/
H A Dvfs.h59 struct vfs { struct
60 struct vfs *vfs_next; /* next vfs in vfs list */ argument
141 extern struct vfs *getvfs(); /* return vfs given fsid */
149 (VFSP)->vfs_next = (struct vfs *)0; \
159 extern struct vfs *rootvfs; /* ptr to root vfs structure */
/titanic_41/usr/src/lib/smbsrv/libfksmbsrv/common/
H A Dfake_vfs.c52 static struct vfs fake_rootvfs;
53 struct vfs *rootvfs = NULL;
113 struct vfs *
171 vfs_getmntpoint(const struct vfs *vfsp) in vfs_getmntpoint()
/titanic_41/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()
/titanic_41/usr/src/uts/common/fs/dev/
H A Dsdev_vfsops.c80 static int sdev_mount(struct vfs *, struct vnode *, struct mounta *,
82 static int sdev_unmount(struct vfs *, int, struct cred *);
83 static int sdev_root(struct vfs *, struct vnode **);
84 static int sdev_statvfs(struct vfs *, struct statvfs64 *);
186 sdev_mount(struct vfs *vfsp, struct vnode *mvp, struct mounta *uap, in sdev_mount()
355 sdev_unmount(struct vfs *vfsp, int flag, struct cred *cr) in sdev_unmount()
428 sdev_root(struct vfs *vfsp, struct vnode **vpp) in sdev_root()
441 sdev_statvfs(struct vfs *vfsp, struct statvfs64 *sbp) in sdev_statvfs()
/titanic_41/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 *);
/titanic_41/usr/src/cmd/svr4pkg/libinst/
H A Dmntinfo.c275 already_mounted(struct vfstab *vfs, int is_local_host, char *client_path, in already_mounted() argument
307 if (strcmp(fs_tab[i]->remote_name, vfs->vfs_special) == 0) { in already_mounted()
898 struct vfstab *vfs = &vfsbuf; in get_mntinfo() local
934 while (!getvfsent(pp, vfs)) { in get_mntinfo()
945 is_remote_src(vfs->vfs_special)) && in get_mntinfo()
946 strcmp(vfs->vfs_fstype, MNTTYPE_LOFS) != in get_mntinfo()
954 if (strcmp(vfs->vfs_mountp, "/") == 0) { in get_mntinfo()
960 install_root, vfs->vfs_mountp); in get_mntinfo()
971 strcmp(path_part(vfs->vfs_special), in get_mntinfo()
976 link_name = strdup(path_part(vfs->vfs_special)); in get_mntinfo()
[all …]
/titanic_41/usr/src/uts/common/fs/tmpfs/
H A Dtmp_vfsops.c61 static int tmp_mount(struct vfs *, struct vnode *,
63 static int tmp_unmount(struct vfs *, int, struct cred *);
64 static int tmp_root(struct vfs *, struct vnode **);
65 static int tmp_statvfs(struct vfs *, struct statvfs64 *);
66 static int tmp_vget(struct vfs *, struct vnode **, struct fid *);
230 struct vfs *vfsp, in tmp_mount()
378 tmp_unmount(struct vfs *vfsp, int flag, struct cred *cr) in tmp_unmount()
521 tmp_root(struct vfs *vfsp, struct vnode **vpp) in tmp_root()
536 tmp_statvfs(struct vfs *vfsp, struct statvfs64 *sbp) in tmp_statvfs()
640 tmp_vget(struct vfs *vfsp, struct vnode **vpp, struct fid *fidp) in tmp_vget()
/titanic_41/usr/src/uts/common/fs/
H A Dvfs.c96 extern vopstats_t *get_fstype_vopstats(struct vfs *, struct vfssw *);
97 extern vsk_anchor_t *get_vskstat_anchor(struct vfs *);
103 static void vfs_freemnttab(struct vfs *);
119 struct vfs *mip_vfsp;
138 static struct vfs root;
139 static struct vfs devices;
140 static struct vfs dev;
141 struct vfs *rootvfs = &root; /* pointer to root vfs; head of VFS list. */
1032 lofi_add(const char *fsname, struct vfs *vfsp, in lofi_add()
1106 lofi_remove(struct vfs *vfsp) in lofi_remove()
[all …]
/titanic_41/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()
H A Dlofs_subr.c100 static struct vfs *makelfsnode(struct vfs *, struct loinfo *);
101 static struct lfsnode *lfsfind(struct vfs *, struct loinfo *);
255 struct vfs *vfsp; in makelonode()
313 static struct vfs *
314 makelfsnode(struct vfs *vfsp, struct loinfo *li) in makelfsnode()
420 lfsfind(struct vfs *vfsp, struct loinfo *li) in lfsfind()
459 struct vfs *
460 lo_realvfs(struct vfs *vfsp, struct vnode **realrootvpp) in lo_realvfs()
646 struct vfs *vfsp; in freelonode()
/titanic_41/usr/src/uts/common/fs/hsfs/
H A Dhsfs_vfsops.c222 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);
228 static int hsfs_mountroot(struct vfs *, enum whymountroot);
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);
245 static int hs_getmdev(struct vfs *, char *fspec, int flags, dev_t *pdev,
285 hsfs_mount(struct vfs *vfsp, struct vnode *mvp, in hsfs_mount()
[all …]

123456