Files
apfstests/tests/generic/434.out
T
Anna Schumaker dabd808a52 generic: Add a copy test for invalid input
This test passes invalid argumnt combinations to the copy_file_range()
system call to test that input is verified before attempting to copy.

Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Eryu Guan <eguan@redhat.com>
2017-05-12 21:13:19 +08:00

15 lines
499 B
Plaintext

QA output created by 434
Create the original files
Try to copy when source pos > source size
d41d8cd98f00b204e9800998ecf8427e TEST_DIR/test-434/copy
Try to copy to a read-only file
copy_range: Bad file descriptor
d41d8cd98f00b204e9800998ecf8427e TEST_DIR/test-434/copy
Try to copy to an append-only file
copy_range: Bad file descriptor
d41d8cd98f00b204e9800998ecf8427e TEST_DIR/test-434/copy
Try to copy to a device
copy_range: Invalid argument
Try to copy to a fifo
copy_range: Invalid argument