Files
apfstests/tests/xfs/419.out
T
Darrick J. Wong 6813e5213d xfs: don't allow realtime swap files
Linux swapfiles use bmap which has no ability to tell the swap code
that the blocks its reporting aren't actually on the data device.
Therefore, swapon on a realtime file could corrupt random blocks on
the data device, so we must ensure that swapon cannot happen.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Eryu Guan <eguan@redhat.com>
2017-06-20 17:15:28 +08:00

6 lines
140 B
Plaintext

QA output created by 419
Format and mount
Initialize file
Try to swapon
swapon: SCRATCH_MNT/test-419/file1: swapon failed: Invalid argument