Revision 83193e5ebb0164d612aa620ceab7d3746e80e2a4 authored by Darrick J. Wong on 12 July 2021, 19:58:50 UTC, committed by Darrick J. Wong on 15 July 2021, 16:58:42 UTC
While auditing the realtime growfs code, I realized that the GROWFSRT
ioctl (and by extension xfs_growfs) has always allowed sysadmins to
change the realtime extent size when adding a realtime section to the
filesystem.  Since we also have always allowed sysadmins to set
RTINHERIT and EXTSZINHERIT on directories even if there is no realtime
device, this invalidates the premise laid out in the comments added in
commit 603f000b15f2.

In other words, this is not a case of inadequate metadata validation.
This is a case of nearly forgotten (and apparently untested) but
supported functionality.  Update the comments to reflect what we've
learned, and remove the log message about correcting the misalignment.

Fixes: 603f000b15f2 ("xfs: validate extsz hints against rt extent size when rtinherit is set")
Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Carlos Maiolino <cmaiolino@redhat.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
1 parent 5838d03
History
File Mode Size
Kconfig -rw-r--r-- 1.3 KB
Makefile -rw-r--r-- 218 bytes
xz_crc32.c -rw-r--r-- 1.2 KB
xz_dec_bcj.c -rw-r--r-- 13.6 KB
xz_dec_lzma2.c -rw-r--r-- 28.5 KB
xz_dec_stream.c -rw-r--r-- 19.4 KB
xz_dec_syms.c -rw-r--r-- 664 bytes
xz_dec_test.c -rw-r--r-- 5.2 KB
xz_lzma2.h -rw-r--r-- 6.0 KB
xz_private.h -rw-r--r-- 4.5 KB
xz_stream.h -rw-r--r-- 1.4 KB

back to top