diff options
author | Lennart Poettering <lennart@poettering.net> | 2015-10-21 19:45:44 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2015-10-22 01:59:25 +0200 |
commit | 8c9cfc28448bf671807e7d96b580221edebd71da (patch) | |
tree | db54c559ae82adf23797badf5829d3882933b71b /src/import/import-tar.c | |
parent | 5bcd08db289cd02aad8a89b37b2a46244a7bd473 (diff) |
import: when downloading images, create a subtree quota group for them
Diffstat (limited to 'src/import/import-tar.c')
-rw-r--r-- | src/import/import-tar.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/import/import-tar.c b/src/import/import-tar.c index d2bfb30238..5c288d438e 100644 --- a/src/import/import-tar.c +++ b/src/import/import-tar.c @@ -235,6 +235,8 @@ static int tar_import_fork_tar(TarImport *i) { 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); i->tar_fd = import_fork_tar_x(i->temp_path, &i->tar_pid); if (i->tar_fd < 0) |