From 59c3c195f432243a1d4b2a7210e9699db83cb335 Mon Sep 17 00:00:00 2001 From: Daan De Meyer Date: Sun, 12 Mar 2023 15:15:35 +0100 Subject: [PATCH] mkfs-util: Always use "default" usage type for ext filesystems If no usage type is explicitly specified, ext will choose one based on the filesystem size. Let's override this and always use the "default" usage type so that we can create filesystems that are initially small but might grow later without opting in to the "small" usage type. --- src/shared/mkfs-util.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/shared/mkfs-util.c b/src/shared/mkfs-util.c index 7e620391e3..33cb83343c 100644 --- a/src/shared/mkfs-util.c +++ b/src/shared/mkfs-util.c @@ -361,6 +361,7 @@ int make_filesystem( "-m", "0", "-E", discard ? "discard,lazy_itable_init=1" : "nodiscard,lazy_itable_init=1", "-b", "4096", + "-T", "default", node); if (!argv) return log_oom(); @@ -378,6 +379,7 @@ int make_filesystem( "-m", "0", "-E", discard ? "discard,lazy_itable_init=1" : "nodiscard,lazy_itable_init=1", "-b", "4096", + "-T", "default", node); if (root && strv_extend_strv(&argv, STRV_MAKE("-d", root), false) < 0)