Re: [PATCH 04/33] common/rc: skip test if swapon doesn't work

Theodore Ts'o
2025-11-12T20:06:09Z

On Wed, Nov 12, 2025 at 10:26:17AM -0800, Darrick J. Wong wrote:
>
> Well at that point we might as well collapse everything into:
>
> if ! swapon "$SCRATCH_MNT/swap" >/dev/null 2>&1; then
> _scratch_unmount
> _notrun "swapfiles are not supported for $FSTYP"
> fi

Agreed. I don't think the ext4 special case makes sense here. If we
want to have a specific "swapfiles are working when we expect them
to", let's do that as a single file system specific test. Let's keep
_require_scratch_swapfile simple.

- Ted