mirror of
https://github.com/linux-apfs/apfstests.git
synced 2026-05-01 15:01:44 -07:00
dabd808a52
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>
15 lines
499 B
Plaintext
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
|