Searched refs:vst (Results 1 – 2 of 2) sorted by relevance
226 struct statvfs vst; in MergeFsUsage() local227 if (statvfs(mount_point, &vst) == -1) { in MergeFsUsage()237 partition_proto->set_fs_size((uint64_t)vst.f_blocks * vst.f_frsize); in MergeFsUsage()245 if (vst.f_bavail <= vst.f_blocks) { in MergeFsUsage()246 partition_proto->set_fs_used((uint64_t)(vst.f_blocks - vst.f_bavail) * vst.f_frsize); in MergeFsUsage()
119 struct statvfs vst; in fs_mgr_filesystem_has_space() local120 if (statvfs(mount_point.c_str(), &vst)) { in fs_mgr_filesystem_has_space()128 return (vst.f_bfree >= (vst.f_blocks * kPercentThreshold / 100)) && in fs_mgr_filesystem_has_space()129 (static_cast<uint64_t>(vst.f_bfree) * vst.f_frsize) >= kSizeThreshold; in fs_mgr_filesystem_has_space()