mirror of
https://github.com/linux-apfs/apfstests.git
synced 2026-05-01 15:01:44 -07:00
common/rc: relax xfs swapfile support checks
In commit725feeff, I forgot that xfs has *not* always supported all swap file configurations -- the bmap swapfile activation prior to the introduction of iomap_swapfile_activate did not permit the use of unwritten extents in the swap file. Therefore, kick xfs out of the always-supported list. Fixes:725feeff("common/rc: swapon should not fail for given FS in _require_scratch_swapfile()") Signed-off-by: Darrick J. Wong <djwong@kernel.org> Reviewed-by: Brian Foster <bfoster@redhat.com> Signed-off-by: Eryu Guan <guaneryu@gmail.com>
This commit is contained in:
committed by
Eryu Guan
parent
9abb8f44ca
commit
2c70e8f8dd
@@ -2534,10 +2534,10 @@ _require_scratch_swapfile()
|
||||
# Minimum size for mkswap is 10 pages
|
||||
_format_swapfile "$SCRATCH_MNT/swap" $(($(get_page_size) * 10))
|
||||
|
||||
# ext* and xfs have supported all variants of swap files since their
|
||||
# ext* has supported all variants of swap files since their
|
||||
# introduction, so swapon should not fail.
|
||||
case "$FSTYP" in
|
||||
ext2|ext3|ext4|xfs)
|
||||
ext2|ext3|ext4)
|
||||
if ! swapon "$SCRATCH_MNT/swap" >/dev/null 2>&1; then
|
||||
_scratch_unmount
|
||||
_fail "swapon failed for $FSTYP"
|
||||
|
||||
Reference in New Issue
Block a user