From cb81cd8073392936882643af0129934bf67e96c4 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Tue, 10 Mar 2015 15:55:58 +0100 Subject: shared: the btrfs quota field is called "referenced" not "referred" --- src/shared/machine-image.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/shared/machine-image.c') 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, "a); 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) { -- cgit v1.2.3-54-g00ecf