reflink: avoid reflink on swap files

Since none of the current filesystems support reflinked swap files,
make sure that we prohibit reflinking of swapfiles and swapon of
reflinked files.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Cc: Christoph Hellwig <hch@lst.de>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Eryu Guan <eguan@redhat.com>
This commit is contained in:
Darrick J. Wong
2016-05-25 22:57:36 -07:00
committed by Eryu Guan
parent 0199ca71d5
commit 12c5657cfa
5 changed files with 160 additions and 0 deletions
+6
View File
@@ -0,0 +1,6 @@
QA output created by 356
Format and mount
Initialize file
Try to reflink
cp: failed to clone 'SCRATCH_MNT/test-356/file2' from 'SCRATCH_MNT/test-356/file1': Text file busy
Tear it down