Searched refs:quota (Results 1 - 3 of 3) sorted by relevance

/systemd/src/test/
H A Dtest-btrfs.c31 BtrfsQuotaInfo quota; local
49 r = btrfs_qgroup_get_quota_fd(fd, 0, &quota);
51 log_error_errno(r, "Failed to get quota info: %m");
53 log_info("referenced: %s", strna(format_bytes(bs, sizeof(bs), quota.referenced)));
54 log_info("exclusive: %s", strna(format_bytes(bs, sizeof(bs), quota.exclusive)));
55 log_info("referenced_max: %s", strna(format_bytes(bs, sizeof(bs), quota.referenced_max)));
56 log_info("exclusive_max: %s", strna(format_bytes(bs, sizeof(bs), quota.exclusive_max)));
167 log_error_errno(r, "Failed to set up quota limit: %m");
171 log_error_errno(r, "Failed to set up quota limit: %m");
177 r = btrfs_qgroup_get_quota("/xxxquotatest2/beneath", 0, &quota);
[all...]
/systemd/src/basic/
H A Dbtrfs-util.h104 int btrfs_subvol_get_subtree_quota(const char *path, uint64_t subvol_id, BtrfsQuotaInfo *quota);
105 int btrfs_subvol_get_subtree_quota_fd(int fd, uint64_t subvol_id, BtrfsQuotaInfo *quota);
130 int btrfs_qgroup_get_quota_fd(int fd, uint64_t qgroupid, BtrfsQuotaInfo *quota);
131 int btrfs_qgroup_get_quota(const char *path, uint64_t qgroupid, BtrfsQuotaInfo *quota);
/systemd/src/shared/
H A Dmachine-image.c214 BtrfsQuotaInfo quota; local
216 r = btrfs_subvol_get_subtree_quota_fd(fd, 0, &quota);
218 (*ret)->usage = quota.referenced;
219 (*ret)->usage_exclusive = quota.exclusive;
221 (*ret)->limit = quota.referenced_max;
222 (*ret)->limit_exclusive = quota.exclusive_max;
612 * copy any quota from the source. */
760 /* We set the quota both for the subvolume as well as for the
762 * we didn't use to have a concept of subtree quota, and hence
763 * only modified the subvolume quota
[all...]

Completed in 13 milliseconds