tmpfiles: don't consider it a problem if quota is not enabled on btrfs

If quota is not enabled on a btrfs file system, accept that, and only
log a debug message, but do not consider this a reason for failure.

Fixes: #1809
This commit is contained in:
Lennart Poettering
2015-11-10 21:41:22 +01:00
parent 12ee6186dc
commit be6d467c1f
2 changed files with 8 additions and 0 deletions
+4
View File
@@ -1267,6 +1267,10 @@ static int create_item(Item *i) {
log_debug_errno(r, "Couldn't adjust quota for subvolume \"%s\" because of read-only file system: %m", i->path);
return 0;
}
if (r == -ENOPROTOOPT) {
log_debug_errno(r, "Couldn't adjust quota for subvolume \"%s\" because quota support is disabled: %m", i->path);
return 0;
}
if (r < 0)
return log_error_errno(r, "Failed to adjust quota for subvolume \"%s\": %m", i->path);
if (r > 0)