Home
last modified time | relevance | path

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

/systemd-251/src/home/
Dhomework-quota.c20 if (h->disk_size == UINT64_MAX) in home_update_quota_btrfs()
30 r = btrfs_qgroup_set_limit(path, 0, h->disk_size); in home_update_quota_btrfs()
48 if (h->disk_size == UINT64_MAX) in home_update_quota_classic()
68 … if (FLAGS_SET(req.dqb_valid, QIF_BLIMITS) && h->disk_size / QIF_DQBLKSIZE == req.dqb_bhardlimit) { in home_update_quota_classic()
75 req.dqb_bsoftlimit = req.dqb_bhardlimit = h->disk_size / QIF_DQBLKSIZE; in home_update_quota_classic()
96 if (h->disk_size == UINT64_MAX) in home_update_quota_auto()
Dhomed-home.c1707 uint64_t disk_size, in home_resize() argument
1742 if (disk_size == UINT64_MAX && h->record->rebalance_weight != REBALANCE_WEIGHT_OFF) in home_resize()
1745 if (disk_size == UINT64_MAX || disk_size == h->record->disk_size) { in home_resize()
1746 if (h->record->disk_size == UINT64_MAX) in home_resize()
1760 r = user_record_set_disk_size(c, disk_size); in home_resize()
2152 uint64_t disk_size = UINT64_MAX, disk_usage = UINT64_MAX, disk_free = UINT64_MAX, in home_get_disk_status_luks() local
2174 disk_size = st.st_size; in home_get_disk_status_luks()
2202 disk_size = sz * 512; in home_get_disk_status_luks()
2238 if (disk_size != UINT64_MAX && disk_size > fs_size) in home_get_disk_status_luks()
2239 header_size = disk_size - fs_size; in home_get_disk_status_luks()
[all …]
Duser-record-util.h48 int user_record_set_disk_size(UserRecord *h, uint64_t disk_size);
Dhomework-luks.c2039 if (h->disk_size != UINT64_MAX) in calculate_initial_image_size()
2040 *ret = MIN(DISK_SIZE_ROUND_DOWN(h->disk_size), upper_boundary); in calculate_initial_image_size()
2222 if (h->disk_size == UINT64_MAX) { in home_create_luks()
2231 } else if (h->disk_size > block_device_size) in home_create_luks()
2234 host_size = DISK_SIZE_ROUND_DOWN(h->disk_size); in home_create_luks()
3164 new_image_size_rounded = DISK_SIZE_ROUND_DOWN(h->disk_size); in home_resize_luks()
3166 … if (old_image_size >= new_image_size_rounded && old_image_size <= h->disk_size) { in home_resize_luks()
3227 new_partition_size_rounded = DISK_SIZE_ROUND_DOWN(h->disk_size); in home_resize_luks()
3230 setup->partition_size <= h->disk_size) { in home_resize_luks()
Duser-record-util.c627 int user_record_set_disk_size(UserRecord *h, uint64_t disk_size) { in user_record_set_disk_size() argument
716 r = json_variant_set_field_unsigned(&ne, "diskSize", disk_size); in user_record_set_disk_size()
731 h->disk_size = disk_size; in user_record_set_disk_size()
Dhomed-home.h194 int home_resize(Home *h, uint64_t disk_size, UserRecord *secret, bool automatic, sd_bus_error *erro…
Dhomework-directory.c140 if (h->disk_size != UINT64_MAX) { in home_create_directory_or_subvolume()
Dhomework.c1642 if (h->disk_size == UINT64_MAX) in home_resize()
/systemd-251/src/shared/
Duser-record-show.c346 if (hr->disk_size != UINT64_MAX) in user_record_show()
347 printf(" Disk Size: %s\n", FORMAT_BYTES(hr->disk_size)); in user_record_show()
350 if (hr->disk_size != UINT64_MAX) { in user_record_show()
353 … permille = (unsigned) DIV_ROUND_UP(hr->disk_usage * 1000U, hr->disk_size); /* Round up! */ in user_record_show()
362 if (hr->disk_size != UINT64_MAX) { in user_record_show()
366 … permille = (unsigned) ((hr->disk_free * 1000U) / hr->disk_size); /* Round down! */ in user_record_show()
Duser-record.h263 uint64_t disk_size; member
Duser-record.c43 .disk_size = UINT64_MAX, in user_record_new()
1174 …SIGNED, json_dispatch_uint64, offsetof(UserRecord, disk_size), … in dispatch_per_machine()
1280 …_VARIANT_UNSIGNED, json_dispatch_uint64, offsetof(UserRecord, disk_size), … in dispatch_status()
1525 …SIGNED, json_dispatch_uint64, offsetof(UserRecord, disk_size), … in user_record_load()