From: Daan De Meyer Date: Fri, 21 Jul 2023 12:21:44 +0000 (+0200) Subject: xfs: Bump minimal size to 300M X-Git-Tag: v254-rc3~9^2~1 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ce8b4261eb2cdbfb1be6a1d385b8f121a346f014;p=thirdparty%2Fsystemd.git xfs: Bump minimal size to 300M From the xfsprogs source code: * We don't support filesystems smaller than 300MB anymore. Tiny * filesystems have never been XFS' design target. This limit has been * carefully calculated to prevent formatting with a log smaller than * the "realistic" size. * * If the realistic log size is 64MB, there are four AGs, and the log * AG should be at least 1/8 free after formatting, this gives us: * * 64MB * (8 / 7) * 4 = 293MB So let's accommodate and bump the minimal XFS filesystem size to 300M. --- diff --git a/src/shared/resize-fs.h b/src/shared/resize-fs.h index ac185d180b0..b40943c9921 100644 --- a/src/shared/resize-fs.h +++ b/src/shared/resize-fs.h @@ -8,7 +8,7 @@ int resize_fs(int fd, uint64_t sz, uint64_t *ret_size); #define BTRFS_MINIMAL_SIZE (256U*1024U*1024U) -#define XFS_MINIMAL_SIZE (16U*1024U*1024U) +#define XFS_MINIMAL_SIZE (300U*1024U*1024U) #define EXT4_MINIMAL_SIZE (1024U*1024U) uint64_t minimal_size_by_fs_magic(statfs_f_type_t magic);