From: Daan De Meyer Date: Sun, 12 Mar 2023 14:15:35 +0000 (+0100) Subject: mkfs-util: Always use "default" usage type for ext filesystems X-Git-Tag: v254-rc1~1055^2~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=59c3c195f432243a1d4b2a7210e9699db83cb335;p=thirdparty%2Fsystemd.git 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. --- diff --git a/src/shared/mkfs-util.c b/src/shared/mkfs-util.c index 7e620391e35..33cb83343c4 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)