Searched refs:disk_size (Results 1 – 11 of 11) sorted by relevance
/systemd-251/src/home/ |
D | homework-quota.c | 20 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()
|
D | homed-home.c | 1707 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 …]
|
D | user-record-util.h | 48 int user_record_set_disk_size(UserRecord *h, uint64_t disk_size);
|
D | homework-luks.c | 2039 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()
|
D | user-record-util.c | 627 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()
|
D | homed-home.h | 194 int home_resize(Home *h, uint64_t disk_size, UserRecord *secret, bool automatic, sd_bus_error *erro…
|
D | homework-directory.c | 140 if (h->disk_size != UINT64_MAX) { in home_create_directory_or_subvolume()
|
D | homework.c | 1642 if (h->disk_size == UINT64_MAX) in home_resize()
|
/systemd-251/src/shared/ |
D | user-record-show.c | 346 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()
|
D | user-record.h | 263 uint64_t disk_size; member
|
D | user-record.c | 43 .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()
|