]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
user-runtime-dir: fix logged quota size 38496/head
authorYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 6 Aug 2025 03:45:45 +0000 (12:45 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 6 Aug 2025 03:54:26 +0000 (12:54 +0900)
'v' is a number of blocks, rather than bytes.

src/login/user-runtime-dir.c

index 0de95583cb8758c8b08b545ad37b59923783c1ad..b80723b97e6a96a66fc6723bc1763dbb70dc39f2 100644 (file)
@@ -289,7 +289,8 @@ static int apply_tmpfs_quota(
                         log_debug_errno(r, "Lacking privileges to set UID quota on %s, skipping: %m", *p);
                         continue;
                 } else if (r < 0) {
-                        log_warning_errno(r, "Failed to set disk quota limit to '%s' on %s for UID " UID_FMT ", ignoring: %m", FORMAT_BYTES(v), *p, uid);
+                        log_warning_errno(r, "Failed to set disk quota limit to %s on %s for UID " UID_FMT ", ignoring: %m",
+                                          FORMAT_BYTES(v * QIF_DQBLKSIZE), *p, uid);
                         continue;
                 }