mirror of
https://github.com/linux-apfs/apfstests.git
synced 2026-05-01 15:01:44 -07:00
7a9cfc2a42
The test was using $SCRATCH_MNT as a mountpoint for $SCRATCH_DEV, which
is counter intuitive and not expected by the fstests framework - this
made the test fail after commit 27d077ec0b (common: use mount/umount
helpers everywhere). So rewrite the test to use the scratch device for
all data and use a test specific directory inside $TEST_DIR to use as a
mount point for a cross mount of $SCRATCH_DEV.
This test was also overriding $seqres.full, through the redirect ">"
operator, if a call to cp failed. Fix that by using instead the operator
">>". Also make the test use the function _mount() instead of calling
the mount program directly.
Signed-off-by: Filipe Manana <fdmanana@suse.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
16 lines
488 B
Plaintext
16 lines
488 B
Plaintext
QA output created by 029
|
|
test reflinks across different devices
|
|
reflink=auto:
|
|
42d69d1a6d333a7ebdf64792a555e392 SCRATCH_MNT/original
|
|
42d69d1a6d333a7ebdf64792a555e392 TEST_DIR/test-029/copy
|
|
reflink=always:
|
|
cp reflink failed
|
|
TEST_DIR/test-029/copy
|
|
test reflinks across different mountpoints of same device
|
|
reflink=auto:
|
|
42d69d1a6d333a7ebdf64792a555e392 SCRATCH_MNT/original
|
|
42d69d1a6d333a7ebdf64792a555e392 TEST_DIR/test-029/copy
|
|
reflink=always:
|
|
cp reflink failed
|
|
TEST_DIR/test-029/copy
|