summaryrefslogtreecommitdiffstats
path: root/src/shared/resize-fs.h (follow)
Commit message (Collapse)AuthorAgeFilesLines
* resize-fs: Put minimal ext4 size in the same ballpark as the other filesystemsDaan De Meyer2024-07-261-3/+3
| | | | | | | | | TEST-46-HOMED fails on ext4 because the filesystem is deemed to small for activation by cryptsetup. Let's bump the minimal filesystem size for ext4 a bit to be in the same ballpark as ext4 and btrfs to avoid weird errors due to impossibly small filesystems. Also use U64_MB while we're touching this.
* xfs: Bump minimal size to 300MDaan De Meyer2023-07-211-1/+1
| | | | | | | | | | | | | | | | 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.
* resize-fs: Bump xfs minimum partition size to 16MBDaan De Meyer2022-11-111-1/+1
| | | | 14MB leads to errors in mkfs.xfs when running repart.
* resize-fs: add helper that checks if the specified fs can do online grow/shrinkLennart Poettering2021-11-161-0/+2
| | | | | There's only one that can do this (btrfs), but let's abstract that fact, a bit in case the other file systems learn this too one day.
* license: LGPL-2.1+ -> LGPL-2.1-or-laterYu Watanabe2020-11-091-1/+1
|
* growfs: port over to resize_fs()Zbigniew Jędrzejewski-Szmek2019-12-051-1/+1
|
* shared: add new wrapper for online fs resizing ioctlsLennart Poettering2019-12-041-0/+15