summaryrefslogtreecommitdiff
path: root/src/shared/machine-image.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2015-03-10 15:55:58 +0100
committerLennart Poettering <lennart@poettering.net>2015-03-10 15:55:58 +0100
commitcb81cd8073392936882643af0129934bf67e96c4 (patch)
tree7609a50fcc65b9265e6e90aad8880f258c55a13e /src/shared/machine-image.c
parente06fe15b1f27d9d2317b25232d6df1e0a60dfce2 (diff)
shared: the btrfs quota field is called "referenced" not "referred"
Diffstat (limited to 'src/shared/machine-image.c')
-rw-r--r--src/shared/machine-image.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/shared/machine-image.c b/src/shared/machine-image.c
index c6d2850ad2..552847e0f0 100644
--- a/src/shared/machine-image.c
+++ b/src/shared/machine-image.c
@@ -163,10 +163,10 @@ static int image_make(
r = btrfs_subvol_get_quota_fd(fd, &quota);
if (r >= 0) {
- (*ret)->usage = quota.referred;
+ (*ret)->usage = quota.referenced;
(*ret)->usage_exclusive = quota.exclusive;
- (*ret)->limit = quota.referred_max;
+ (*ret)->limit = quota.referenced_max;
(*ret)->limit_exclusive = quota.exclusive_max;
}
@@ -613,7 +613,7 @@ int image_path_lock(const char *path, int operation, LockFile *global, LockFile
return 0;
}
-int image_set_limit(Image *i, uint64_t referred_max) {
+int image_set_limit(Image *i, uint64_t referenced_max) {
assert(i);
if (path_equal(i->path, "/") ||
@@ -623,7 +623,7 @@ int image_set_limit(Image *i, uint64_t referred_max) {
if (i->type != IMAGE_SUBVOLUME)
return -ENOTSUP;
- return btrfs_quota_limit(i->path, referred_max);
+ return btrfs_quota_limit(i->path, referenced_max);
}
int image_name_lock(const char *name, int operation, LockFile *ret) {