common/rc: swapon should not fail for given FS in _require_scratch_swapfile()
authorRitesh Harjani <riteshh@linux.ibm.com>
Tue, 5 Jan 2021 14:31:42 +0000 (20:01 +0530)
committerEryu Guan <guaneryu@gmail.com>
Sun, 10 Jan 2021 09:07:21 +0000 (17:07 +0800)
commit725feeff94cc5e00158eeb29a8d5cae40b86674c
treef223b088747122e2bfe3e0263494f7e6fb3729b5
parent02f7e9feb9f9c17f69113122d509769d81202b4c
common/rc: swapon should not fail for given FS in _require_scratch_swapfile()

Filesystems e.g. ext* and XFS supports swapon by default and an error
returned with swapon should be treated as a failure.

Signed-off-by: Ritesh Harjani <riteshh@linux.ibm.com>
Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Eryu Guan <guaneryu@gmail.com>
common/rc