Whamcloud - gitweb
resize2fs: trim resize to cluster boundary
authorKiselev, Oleg <okiselev@amazon.com>
Sat, 14 May 2022 04:17:09 +0000 (04:17 +0000)
committerTheodore Ts'o <tytso@mit.edu>
Thu, 11 Aug 2022 14:06:10 +0000 (10:06 -0400)
commitb609d01e6d200638aad42adee922f91d91e3e642
tree40cb6d865ffb79ca3928b230f4ad4e3f3d5742c0
parentaa5732531f76e405a17415a4217f86cf8270d589
resize2fs: trim resize to cluster boundary

This patch rounds down the size provided to resize2fs to the nearest
cluster boundary for bigalloc filesystems.  This is similar to the
trimming already done for page boundary alignment.  Aligning the size in
the user space provides the right value feedback from the resize2fs
command, which is a better user experience than trimming the size
in the kernel.

Signed-off-by: Oleg Kiselev <okiselev@amazon.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
resize/main.c