summaryrefslogtreecommitdiffstats
path: root/src/import/pull-tar.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2015-10-21 19:45:44 +0200
committerLennart Poettering <lennart@poettering.net>2015-10-22 01:59:25 +0200
commit8c9cfc28448bf671807e7d96b580221edebd71da (patch)
treedb54c559ae82adf23797badf5829d3882933b71b /src/import/pull-tar.c
parentbtrfs: beef-up btrfs support with a limited understanding of quota (diff)
downloadsystemd-8c9cfc28448bf671807e7d96b580221edebd71da.tar.xz
systemd-8c9cfc28448bf671807e7d96b580221edebd71da.zip
import: when downloading images, create a subtree quota group for them
Diffstat (limited to 'src/import/pull-tar.c')
-rw-r--r--src/import/pull-tar.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/import/pull-tar.c b/src/import/pull-tar.c
index 563765d83d..b818382172 100644
--- a/src/import/pull-tar.c
+++ b/src/import/pull-tar.c
@@ -410,6 +410,8 @@ static int tar_pull_job_on_open_disk_tar(PullJob *j) {
return log_error_errno(errno, "Failed to create directory %s: %m", i->temp_path);
} else if (r < 0)
return log_error_errno(errno, "Failed to create subvolume %s: %m", i->temp_path);
+ else
+ (void) import_assign_pool_quota_and_warn(i->temp_path);
j->disk_fd = import_fork_tar_x(i->temp_path, &i->tar_pid);
if (j->disk_fd < 0)