]> git.apps.os.sepia.ceph.com Git - xfstests-dev.git/commit
xfs: don't allow realtime swap files
authorDarrick J. Wong <darrick.wong@oracle.com>
Mon, 19 Jun 2017 20:24:02 +0000 (13:24 -0700)
committerEryu Guan <eguan@redhat.com>
Tue, 20 Jun 2017 09:15:28 +0000 (17:15 +0800)
commit6813e5213df80b90db215923129c7deac9b41a5b
tree1cf8ff905e519ddf3f3be9dcda567cc53e4548be
parent10ad7501694ad1a151dd69de7e68080c358b570a
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>
tests/xfs/419 [new file with mode: 0755]
tests/xfs/419.out [new file with mode: 0644]
tests/xfs/group