Home
last modified time | relevance | path

Searched refs:sfs (Results 1 – 11 of 11) sorted by relevance

/systemd-251/src/nspawn/ !
Dnspawn-patch-uid.c265 static int is_fs_fully_userns_compatible(const struct statfs *sfs) { in is_fs_fully_userns_compatible() argument
267 assert(sfs); in is_fs_fully_userns_compatible()
269 return F_TYPE_EQUAL(sfs->f_type, BINFMTFS_MAGIC) || in is_fs_fully_userns_compatible()
270 F_TYPE_EQUAL(sfs->f_type, CGROUP_SUPER_MAGIC) || in is_fs_fully_userns_compatible()
271 F_TYPE_EQUAL(sfs->f_type, CGROUP2_SUPER_MAGIC) || in is_fs_fully_userns_compatible()
272 F_TYPE_EQUAL(sfs->f_type, DEBUGFS_MAGIC) || in is_fs_fully_userns_compatible()
273 F_TYPE_EQUAL(sfs->f_type, DEVPTS_SUPER_MAGIC) || in is_fs_fully_userns_compatible()
274 F_TYPE_EQUAL(sfs->f_type, EFIVARFS_MAGIC) || in is_fs_fully_userns_compatible()
275 F_TYPE_EQUAL(sfs->f_type, HUGETLBFS_MAGIC) || in is_fs_fully_userns_compatible()
276 F_TYPE_EQUAL(sfs->f_type, MQUEUE_MAGIC) || in is_fs_fully_userns_compatible()
[all …]
/systemd-251/src/shared/ !
Dresize-fs.c17 struct statfs sfs; in resize_fs() local
26 if (fstatfs(fd, &sfs) < 0) in resize_fs()
29 if (is_fs_type(&sfs, EXT4_SUPER_MAGIC)) { in resize_fs()
35 u = sz / sfs.f_bsize; in resize_fs()
41 *ret_size = u * sfs.f_bsize; in resize_fs()
43 } else if (is_fs_type(&sfs, BTRFS_SUPER_MAGIC)) { in resize_fs()
54 sz -= sz % sfs.f_bsize; in resize_fs()
64 } else if (is_fs_type(&sfs, XFS_SB_MAGIC)) { in resize_fs()
Dmachine-pool.c12 struct statfs sfs; in check_btrfs() local
14 if (statfs("/var/lib/machines", &sfs) < 0) { in check_btrfs()
18 if (statfs("/var/lib", &sfs) < 0) in check_btrfs()
22 return F_TYPE_EQUAL(sfs.f_type, BTRFS_SUPER_MAGIC); in check_btrfs()
Drm-rf.c25 static bool is_physical_fs(const struct statfs *sfs) { in is_physical_fs() argument
26 return !is_temporary_fs(sfs) && !is_cgroup_fs(sfs); in is_physical_fs()
251 struct statfs sfs; in rm_rf_children() local
253 if (fstatfs(fd, &sfs) < 0) in rm_rf_children()
256 if (is_physical_fs(&sfs)) { in rm_rf_children()
Dfind-esp.c327 struct statfs sfs; in verify_esp() local
329 if (statfs(p, &sfs) < 0) in verify_esp()
335 if (!F_TYPE_EQUAL(sfs.f_type, MSDOS_SUPER_MAGIC)) in verify_esp()
/systemd-251/src/home/ !
Dhomework-quota.c91 struct statfs sfs; in home_update_quota_auto() local
105 if (statfs(path, &sfs) < 0) in home_update_quota_auto()
108 if (is_fs_type(&sfs, XFS_SB_MAGIC) || in home_update_quota_auto()
109 is_fs_type(&sfs, EXT4_SUPER_MAGIC)) in home_update_quota_auto()
112 if (is_fs_type(&sfs, BTRFS_SUPER_MAGIC)) { in home_update_quota_auto()
Dhomework-luks.c1462 …ic void print_size_summary(uint64_t host_size, uint64_t encrypted_size, const struct statfs *sfs) { in print_size_summary() argument
1463 assert(sfs); in print_size_summary()
1468 FORMAT_BYTES((uint64_t) sfs->f_blocks * (uint64_t) sfs->f_frsize), in print_size_summary()
1469 FORMAT_BYTES((uint64_t) sfs->f_bfree * (uint64_t) sfs->f_frsize)); in print_size_summary()
1477 struct statfs sfs; in home_auto_grow_luks() local
1487 if (fstatfs(setup->root_fd, &sfs) < 0) in home_auto_grow_luks()
1490 if (!fs_can_online_shrink_and_grow(sfs.f_type)) { in home_auto_grow_luks()
1518 struct statfs sfs; in home_activate_luks() local
1567 &sfs, in home_activate_luks()
1599 print_size_summary(host_size, encrypted_size, &sfs); in home_activate_luks()
[all …]
Dhomed-home.c2157 struct statfs sfs; in home_get_disk_status_luks() local
2181 if (statfs(parent, &sfs) < 0) in home_get_disk_status_luks()
2184 disk_ceiling = stat_used + sfs.f_bsize * sfs.f_bavail; in home_get_disk_status_luks()
2229 if (statfs(hd, &sfs) < 0) { in home_get_disk_status_luks()
2234 fstype = sfs.f_type; in home_get_disk_status_luks()
2236 disk_free = sfs.f_bsize * sfs.f_bavail; in home_get_disk_status_luks()
2237 fs_size = sfs.f_bsize * sfs.f_blocks; in home_get_disk_status_luks()
2258 disk_floor = minimal_size_by_fs_magic(sfs.f_type) + header_size; in home_get_disk_status_luks()
2298 struct statfs sfs; in home_get_disk_status_directory() local
2318 if (statfs(path, &sfs) < 0) in home_get_disk_status_directory()
[all …]
Dhomed-manager.c81 struct statfs sfs; in manager_watch_home() local
89 if (statfs(get_home_root(), &sfs) < 0) { in manager_watch_home()
95 if (is_network_fs(&sfs)) { in manager_watch_home()
100 if (is_fs_type(&sfs, AUTOFS_SUPER_MAGIC)) { in manager_watch_home()
1821 struct statfs sfs; in manager_rebalance_calculate() local
1827 if (statfs(get_home_root(), &sfs) < 0) in manager_rebalance_calculate()
1830 … free_sum = (uint64_t) sfs.f_bsize * sfs.f_bavail; /* This much free space is available on the in manager_rebalance_calculate()
Dhomework.c727 struct statfs sfs; in file_system_type_fd() local
731 if (fstatfs(fd, &sfs) < 0) { in file_system_type_fd()
736 return fs_type_to_string(sfs.f_type); in file_system_type_fd()
/systemd-251/src/test/ !
Dtest-cgroup-util.c312 struct statfs sfs; variable
313 assert_se(statfs("/sys/fs/cgroup", &sfs) == 0);
314 if (is_temporary_fs(&sfs))
315 assert_se(statfs("/sys/fs/cgroup/systemd", &sfs) == 0);
316 assert_se(is_cgroup_fs(&sfs));