Home
last modified time | relevance | path

Searched refs:quota (Results 1 – 15 of 15) sorted by relevance

/systemd-251/src/test/
Dtest-btrfs.c14 BtrfsQuotaInfo quota; in main() local
31 r = btrfs_qgroup_get_quota_fd(fd, 0, &quota); in main()
35 log_info("referenced: %s", strna(FORMAT_BYTES(quota.referenced))); in main()
36 log_info("exclusive: %s", strna(FORMAT_BYTES(quota.exclusive))); in main()
37 log_info("referenced_max: %s", strna(FORMAT_BYTES(quota.referenced_max))); in main()
38 log_info("exclusive_max: %s", strna(FORMAT_BYTES(quota.exclusive_max))); in main()
159 r = btrfs_qgroup_get_quota("/xxxquotatest2/beneath", 0, &quota); in main()
163 assert_se(quota.referenced_max == 4ULL * 1024 * 1024 * 1024); in main()
165 r = btrfs_subvol_get_subtree_quota("/xxxquotatest2", 0, &quota); in main()
169 assert_se(quota.referenced_max == 5ULL * 1024 * 1024 * 1024); in main()
/systemd-251/src/shared/
Dbtrfs-util.h94 int btrfs_subvol_get_subtree_quota(const char *path, uint64_t subvol_id, BtrfsQuotaInfo *quota);
95 int btrfs_subvol_get_subtree_quota_fd(int fd, uint64_t subvol_id, BtrfsQuotaInfo *quota);
120 int btrfs_qgroup_get_quota_fd(int fd, uint64_t qgroupid, BtrfsQuotaInfo *quota);
121 int btrfs_qgroup_get_quota(const char *path, uint64_t qgroupid, BtrfsQuotaInfo *quota);
Ddiscover-image.c292 BtrfsQuotaInfo quota; in image_make() local
294 r = btrfs_subvol_get_subtree_quota_fd(fd, 0, &quota); in image_make()
296 (*ret)->usage = quota.referenced; in image_make()
297 (*ret)->usage_exclusive = quota.exclusive; in image_make()
299 (*ret)->limit = quota.referenced_max; in image_make()
300 (*ret)->limit_exclusive = quota.exclusive_max; in image_make()
Dmeson.build265 'quota-util.c',
266 'quota-util.h',
/systemd-251/src/home/
Dmeson.build22 'homework-quota.c',
23 'homework-quota.h',
/systemd-251/src/core/
Dcgroup.c923 usec_t cgroup_cpu_adjust_period(usec_t period, usec_t quota, usec_t resolution, usec_t max_period) { in cgroup_cpu_adjust_period() argument
927 assert(quota > 0); in cgroup_cpu_adjust_period()
929 return MIN(MAX3(period, resolution, resolution * USEC_PER_SEC / quota), max_period); in cgroup_cpu_adjust_period()
932 static usec_t cgroup_cpu_adjust_period_and_log(Unit *u, usec_t period, usec_t quota) { in cgroup_cpu_adjust_period_and_log() argument
935 if (quota == USEC_INFINITY) in cgroup_cpu_adjust_period_and_log()
944 new_period = cgroup_cpu_adjust_period(period, quota, USEC_PER_MSEC, USEC_PER_SEC); in cgroup_cpu_adjust_period_and_log()
963 static void cgroup_apply_unified_cpu_quota(Unit *u, usec_t quota, usec_t period) { in cgroup_apply_unified_cpu_quota() argument
966 period = cgroup_cpu_adjust_period_and_log(u, period, quota); in cgroup_apply_unified_cpu_quota()
967 if (quota != USEC_INFINITY) in cgroup_apply_unified_cpu_quota()
969 MAX(quota * period / USEC_PER_SEC, USEC_PER_MSEC), period); in cgroup_apply_unified_cpu_quota()
[all …]
Dcgroup.h222 usec_t cgroup_cpu_adjust_period(usec_t period, usec_t quota, usec_t resolution, usec_t max_period);
/systemd-251/.github/workflows/
Dbuild_test.sh57 quota
/systemd-251/src/nspawn/
Dnspawn-oci.c1271 uint64_t quota; member
1330 …a", JSON_VARIANT_UNSIGNED, oci_cgroup_cpu_quota, offsetof(struct cpu_data, quota), 0 }, in oci_cgroup_cpu()
1341 .quota = UINT64_MAX, in oci_cgroup_cpu()
1367 if (data.quota != UINT64_MAX && data.period != UINT64_MAX) { in oci_cgroup_cpu()
1372 …append(s->properties, "(sv)", "CPUQuotaPerSecUSec", "t", (uint64_t) (data.quota * USEC_PER_SEC / d… in oci_cgroup_cpu()
1376 } else if ((data.quota != UINT64_MAX) != (data.period != UINT64_MAX)) in oci_cgroup_cpu()
/systemd-251/docs/
DTEMPORARY_DIRECTORIES.md202 Some setups employ per-user quota on `/var/tmp/` and possibly `/tmp/`, to make
204 users. However, in the general case no such per-user quota is implemented
206 — even today — `tmpfs` still provides no native quota support in the kernel.
DENVIRONMENT.md341 up quota automatically for created btrfs subvolumes for machine images. If
344 enabled, the quota group of the subvolume is automatically added to a
345 combined quota group for all such machine subvolumes.
DUIDS-GIDS.md250 or not), given this typically breaks quota assumptions, makes it impossible for
DUSER_RECORD.md367 to classic file system quota settings.
800 reported by the file system quota subsystem.
/systemd-251/
DTODO84 still conceptually belong to the user. Would be included in user's quota if
983 * support projid-based quota in machinectl for containers
1008 the quota of the user indicated in User= via unit file settings, like the
1015 * In DynamicUser= mode: before selecting a UID, use disk quota APIs on relevant
1604 - maybe pre-create ~/.cache as subvol so that it can have separate quota
1614 can easily set overall quota for all users
1820 project quota
DNEWS183 quota, permission, SUID handling and network file system
1364 generation, btrfs quota setup and disk synchronization.
4886 relatively to which the CPU time quota specified by CPUQuota= is
4980 controlling project quota inheritance.
8630 operate like "v", but also set up a basic btrfs quota
8631 hierarchy when used on a btrfs file system with quota
9502 quota, to enforce container disk space limits on disk. This
9694 quota is enabled, this includes quota display. A new command
11039 * The CFS CPU quota cgroup attribute is now exposed for