Searched defs:vfs (Results 1 - 25 of 25) sorted by relevance

/illumos-gate/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);
/illumos-gate/usr/src/cmd/mdb/common/modules/lofs/
H A Dlofs.c30 #include <sys/vfs.h>
49 struct vfs vfs; local
73 (void) mdb_vread(&vfs, sizeof (vfs), vfsp);
74 if (lofsfstype != vfs.vfs_fstype) {
75 vfsp = (uintptr_t)vfs.vfs_next;
79 (uintptr_t)vfs.vfs_data);
81 vfsp = (uintptr_t)vfs.vfs_next;
97 (void) mdb_vread(&vfs, sizeo
234 vfs_t vfs; local
[all...]
/illumos-gate/usr/src/cmd/mdb/common/modules/smbfs/
H A Dsmbfs.c32 #include <sys/vfs.h>
77 uintptr_t vfsops; /* filter by vfs ops pointer */
84 const vfs_t *vfs = data; local
89 if (cbd->vfsops && cbd->vfsops != (uintptr_t)vfs->vfs_op) {
99 mdb_printf(" %-p", (uintptr_t)vfs->vfs_data);
104 ta = (uintptr_t)vfs->vfs_mntpt;
113 (uintptr_t)vfs->vfs_data) == -1) {
115 (uintptr_t)vfs->vfs_data);
131 vfs_t *vfs; local
152 if (mdb_walk("genunix`vfs", smbfs_vfs_c
[all...]
/illumos-gate/usr/src/lib/libast/common/path/
H A Dpathprobe.c62 struct statvfs vfs; local
65 if (!statvfs(path, &vfs))
68 if (vfs.f_flag & ST_RDONLY)
72 if ((vfs.f_flag & ST_NOSUID) && (stat(path, &st) || st.st_uid != getuid() && st.st_uid != geteuid()))
/illumos-gate/usr/src/lib/smbsrv/libfksmbsrv/common/
H A Dvncache.c29 #include <sys/vfs.h>
200 vfs_t *vfs; local
213 vfs = rootvfs;
219 vfs = dvp->v_vfsp;
227 new_vp->v_vfsp = vfs;
/illumos-gate/usr/src/cmd/cmd-inet/sbin/netstrategy/
H A Dnetstrategy.c109 static struct statvfs vfs; local
112 if (statvfs("/", &vfs) < 0) {
115 if (strncmp(vfs.f_basetype, "nfs", sizeof ("nfs") - 1) == 0)
116 vfs.f_basetype[sizeof ("nfs") - 1] = '\0';
117 return (vfs.f_basetype);
/illumos-gate/usr/src/lib/libwanboot/common/
H A Dbootinfo_aux.c348 static struct statvfs vfs; local
350 if (statvfs("/", &vfs) >= 0) {
351 if (strncmp(vfs.f_basetype, "nfs", sizeof ("nfs") - 1) == 0) {
352 vfs.f_basetype[sizeof ("nfs") - 1] = '\0';
354 rootfs_type = vfs.f_basetype;
/illumos-gate/usr/src/lib/libbc/inc/include/sys/
H A Dvfs.h59 struct vfs { struct
60 struct vfs *vfs_next; /* next vfs in vfs list */
61 struct vfsops *vfs_op; /* operations on vfs */
71 * vfs flags.
72 * VFS_MLOCK lock the vfs so that name lookup cannot proceed past the vfs.
75 #define VFS_RDONLY 0x01 /* read only vfs */
76 #define VFS_MLOCK 0x02 /* lock vfs s
[all...]
/illumos-gate/usr/src/cmd/fs.d/udfs/fsck/
H A Dmain.c391 hasvfsopt(struct vfstab *vfs, char *opt) argument
396 if (vfs->vfs_mntopts == NULL)
403 (void) strncpy(tmpopts, vfs->vfs_mntopts, (sizeof (tmpopts) - 1));
408 return (f - tmpopts + vfs->vfs_mntopts);
/illumos-gate/usr/src/cmd/fs.d/ufs/quotaon/
H A Dquotaon.c329 hasvfsopt(struct vfstab *vfs, char *opt) argument
339 strcpy(tmpopts, vfs->vfs_mntopts);
344 return (f - tmpopts + vfs->vfs_mntopts);
/illumos-gate/usr/src/uts/common/sys/
H A Dfem.h37 #include <sys/vfs.h>
47 struct fs_operation_def; /* from vfs.h */
55 * vnode or vfs by intercepting the vnode/vfs operations. The framework enables
115 vfsops_t *vfs; member in union:fem_node::__anon170
435 extern int fsem_is_installed(struct vfs *v, fsem_t *mon, void *arg);
436 extern int fsem_install(struct vfs *v, fsem_t *mon, void *arg, femhow_t how,
438 extern int fsem_uninstall(struct vfs *v, fsem_t *mon, void *arg);
439 extern vfsops_t *fsem_getvfsops(struct vfs *v);
440 extern void fsem_setvfsops(struct vfs *
[all...]
H A Dvfs.h155 * use a unique fsid_t for each vfs (e.g., namefs). In order to do
177 * it's intended for use only in the kernel's vfs layer.
186 * It is safe to read these fields if you can prevent a remount on the vfs,
189 * functions, as it is protected by the vfs list lock. Modifying a mount
190 * option requires grabbing the vfs list write lock, which can be a very
196 typedef struct vfs { struct
197 struct vfs *vfs_next; /* next VFS in VFS list */
198 struct vfs *vfs_prev; /* prev VFS in VFS list */
211 struct vfs *vfs_list; /* sync list pointer */
212 struct vfs *vfs_has
[all...]
/illumos-gate/usr/src/cmd/fs.d/ufs/fsck/
H A Dmain.c801 hasvfsopt(struct vfstab *vfs, char *opt) argument
805 if (vfs->vfs_mntopts == NULL)
807 mtab.mnt_mntopts = vfs->vfs_mntopts;
/illumos-gate/usr/src/cmd/fs.d/ufs/repquota/
H A Drepquota.c489 hasvfsopt(struct vfstab *vfs, char *opt) argument
499 (void) strcpy(tmpopts, vfs->vfs_mntopts);
504 return (f - tmpopts + vfs->vfs_mntopts);
/illumos-gate/usr/src/ucbhead/sys/
H A Dvfs.h85 typedef struct vfs { struct
86 struct vfs *vfs_next; /* next VFS in VFS list */
102 #define VFS_RDONLY 0x01 /* read-only vfs */
103 #define VFS_MLOCK 0x02 /* lock vfs so that subtree is stable */
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 *, struc
[all...]
/illumos-gate/usr/src/cmd/fs.d/ufs/fssnap/
H A Dfssnap.c394 struct statvfs vfs; local
404 if (fstatvfs(mountfd, &vfs) == -1)
407 fssize = vfs.f_blocks * vfs.f_frsize;
/illumos-gate/usr/src/cmd/fs.d/ufs/quotacheck/
H A Dquotacheck.c771 hasvfsopt(struct vfstab *vfs, char *opt) argument
781 strcpy(tmpopts, vfs->vfs_mntopts);
786 return (f - tmpopts + vfs->vfs_mntopts);
/illumos-gate/usr/src/cmd/mdb/common/modules/genunix/
H A Dvfs.c37 #include <sys/vfs.h>
69 vfs_t vfs; local
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; local
182 vfs_t vfs; local
[all...]
/illumos-gate/usr/src/uts/common/fs/ufs/
H A Dufs_dir.c54 #include <sys/vfs.h>
2996 struct vfs *vfs; local
3025 vfs = ip->i_vfs;
3036 if (err = ufs_iget_alloced(vfs, dotdotino, &tip, cr)) {
/illumos-gate/usr/src/cmd/svr4pkg/libinst/
H A Dmntinfo.c271 already_mounted(struct vfstab *vfs, int is_local_host, char *client_path, argument
303 if (strcmp(fs_tab[i]->remote_name, vfs->vfs_special) == 0) {
894 struct vfstab *vfs = &vfsbuf; local
921 * Open the vfs table for the target host.
924 progerr(ERR_NOTABLE, "vfs", VFS_TABLE,
930 while (!getvfsent(pp, vfs)) {
941 is_remote_src(vfs->vfs_special)) &&
942 strcmp(vfs->vfs_fstype, MNTTYPE_LOFS) !=
950 if (strcmp(vfs->vfs_mountp, "/") == 0) {
956 install_root, vfs
[all...]
/illumos-gate/usr/src/uts/common/fs/smbclnt/smbfs/
H A Dsmbfs_vnops.c42 #include <sys/vfs.h>
1452 vfs_t *vfs; local
1457 vfs = dvp->v_vfsp;
1458 smi = VFTOSMI(vfs);
1463 if (smi->smi_flags & SMI_DEAD || vfs->vfs_flag & VFS_UNMOUNTED)
1478 if ((vfs->vfs_flag & VFS_XATTR) == 0)
3005 vfs_t *vfs; local
3009 vfs = vp->v_vfsp;
3010 smi = VFTOSMI(vfs);
3047 if (vfs
[all...]
/illumos-gate/usr/src/cmd/mdb/common/modules/mdb_ks/
H A Dmdb_ks.c417 vfs_t vfs; local
437 if (mdb_vread(&vfs, sizeof (vfs), (uintptr_t)vn.v_vfsp) == -1 ||
438 mdb_vread(&fni, sizeof (fni), (uintptr_t)vfs.vfs_data) == -1 ||
/illumos-gate/usr/src/uts/common/fs/tmpfs/
H A Dtmp_vnops.c40 #include <sys/vfs.h>
236 vfs_t *vfs = tm->tm_vfsp; local
241 vfs->vfs_vnodecovered->v_path);
/illumos-gate/usr/src/cmd/svc/startd/
H A Dgraph.c3584 struct statvfs vfs; local
3601 if ((statvfs("/", &vfs) == 0) &&
3602 (strncmp(vfs.f_basetype, "nfs", sizeof ("nfs") - 1) != 0))
/illumos-gate/usr/src/cmd/boot/bootadm/
H A Dbootadm.c3983 struct statvfs vfs; local
3987 ret = statvfs(root, &vfs);
3995 if (strncmp(vfs.f_basetype, "zfs", strlen("zfs")) == 0) {
4007 struct statvfs vfs; local
4011 ret = statvfs(root, &vfs);
4019 if (strncmp(vfs.f_basetype, "ufs", strlen("ufs")) == 0) {
4031 struct statvfs vfs; local
4035 ret = statvfs(root, &vfs);
4043 if (strncmp(vfs.f_basetype, "pcfs", strlen("pcfs")) == 0) {

Completed in 206 milliseconds