xfs: don't allow overly small or large realtime volumes
authorDarrick J. Wong <djwong@kernel.org>
Fri, 1 Dec 2023 17:24:18 +0000 (09:24 -0800)
committerDarrick J. Wong <djwong@kernel.org>
Thu, 7 Dec 2023 02:45:17 +0000 (18:45 -0800)
commite14293803f4e84eb23a417b462b56251033b5a66
treefd09f0539db015a77c4dd582bae3be4f42fe8534
parentcf8f0e6c1429be7652869059ea44696b72d5b726
xfs: don't allow overly small or large realtime volumes

Don't allow realtime volumes that are less than one rt extent long.
This has been broken across 4 LTS kernels with nobody noticing, so let's
just disable it.

Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
fs/xfs/libxfs/xfs_rtbitmap.h
fs/xfs/libxfs/xfs_sb.c
fs/xfs/xfs_rtalloc.c