Home
last modified time | relevance | path

Searched refs:stvfs (Results 1 – 4 of 4) sorted by relevance

/illumos-gate/usr/src/lib/libfsmgt/common/
H A Dfs_mounts.c84 struct statvfs64 stvfs; in fs_get_availablesize() local
96 if (statvfs64(mntpnt, &stvfs) != -1) { in fs_get_availablesize()
97 availablesize = stvfs.f_bfree; in fs_get_availablesize()
98 availablesize = availablesize * stvfs.f_frsize; in fs_get_availablesize()
109 struct statvfs64 stvfs; in fs_get_avail_for_nonsuperuser_size() local
121 if (statvfs64(mntpnt, &stvfs) != -1) { in fs_get_avail_for_nonsuperuser_size()
122 avail_for_nonsu_size = stvfs.f_bavail; in fs_get_avail_for_nonsuperuser_size()
123 avail_for_nonsu_size = avail_for_nonsu_size * stvfs.f_frsize; in fs_get_avail_for_nonsuperuser_size()
134 struct statvfs64 stvfs; in fs_get_blocksize() local
146 if (statvfs64(mntpnt, &stvfs) != -1) { in fs_get_blocksize()
[all …]
/illumos-gate/usr/src/uts/common/syscall/
H A Dutssys.c151 struct statvfs64 stvfs; in utssys_ustat32() local
156 if ((error = _statvfs64_by_dev(dev, &stvfs)) != 0) in utssys_ustat32()
159 fsbc64 = stvfs.f_bfree * (stvfs.f_frsize / 512); in utssys_ustat32()
169 (stvfs.f_ffree > UINT32_MAX && stvfs.f_ffree != UINT64_MAX)) in utssys_ustat32()
173 ust32.f_tinode = (ino32_t)stvfs.f_ffree; in utssys_ustat32()
175 cp = stvfs.f_fstr; in utssys_ustat32()
184 (i++ < sizeof (stvfs.f_fstr) - sizeof (ust32.f_fpack))) in utssys_ustat32()
226 struct statvfs64 stvfs; in uts_ustat64() local
231 if ((error = _statvfs64_by_dev(dev, &stvfs)) != 0) in uts_ustat64()
234 fsbc64 = stvfs.f_bfree * (stvfs.f_frsize / 512); in uts_ustat64()
[all …]
/illumos-gate/usr/src/uts/common/fs/smbclnt/smbfs/
H A Dsmbfs_vfsops.c902 statvfs64_t stvfs; in smbfs_statvfs() local
946 bzero(&stvfs, sizeof (stvfs)); in smbfs_statvfs()
947 error = smbfs_smb_statfs(ssp, &stvfs, &scred); in smbfs_statvfs()
956 stvfs.f_frsize = stvfs.f_bsize; in smbfs_statvfs()
957 stvfs.f_favail = stvfs.f_ffree; in smbfs_statvfs()
958 stvfs.f_fsid = (unsigned long)vfsp->vfs_fsid.val[0]; in smbfs_statvfs()
959 bcopy(fs_type_name, stvfs.f_basetype, FSTYPSZ); in smbfs_statvfs()
960 stvfs.f_flag = vf_to_stf(vfsp->vfs_flag); in smbfs_statvfs()
961 stvfs.f_namemax = smi->smi_fsa.fsa_maxname; in smbfs_statvfs()
969 smi->smi_statvfsbuf = stvfs; /* struct assign! */ in smbfs_statvfs()
/illumos-gate/usr/src/cmd/fs.d/
H A Ddf.c2024 struct statvfs64 stvfs; in do_df() local
2028 &stvfs) == -1) { in do_df()
2041 (*dfop->dfo_func)(dfrp, &stvfs); in do_df()