reflink: test error conditions due to bad inputs

Check that we can feed bad inputs to reflink/dedupe and it'll reject
them.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Acked-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Dave Chinner <david@fromorbit.com>
This commit is contained in:
Darrick J. Wong
2015-11-17 08:39:50 +11:00
committed by Dave Chinner
parent bed1fedae6
commit f3965fde0a
9 changed files with 456 additions and 0 deletions
+24
View File
@@ -0,0 +1,24 @@
QA output created by 158
Format and mount
Create the original files
Try cross-device dedupe
dedupe: Invalid cross-device link
Try unaligned dedupe
dedupe: Invalid argument
Try overlapping dedupe
dedupe: Invalid argument
Try dedupe past EOF
dedupe: Invalid argument
Try to dedupe a dir
XFS_IOC_FILE_EXTENT_SAME: Is a directory
Try to dedupe a device
XFS_IOC_FILE_EXTENT_SAME: Permission denied
Try to dedupe to a dir
/mnt/test-158/dir1: Is a directory
Try to dedupe to a device
dedupe: Permission denied
Try to dedupe to a fifo
dedupe: Permission denied
Try to dedupe an append-only file
Dedupe two files
Check scratch fs