mirror of
https://github.com/linux-apfs/apfstests.git
synced 2026-05-01 15:01:44 -07:00
btrfs: move btrfs reflink tests to generic
Move the cp --reflink tests from btrfs/ to generic/ since xfs now supports that ioctl. 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:
committed by
Dave Chinner
parent
8deb635098
commit
5a7abc0f09
@@ -1,16 +0,0 @@
|
||||
QA output created by 026
|
||||
Create the original file and reflink to copy1, copy2
|
||||
Original md5sums:
|
||||
42d69d1a6d333a7ebdf64792a555e392 TEST_DIR/test-026/original
|
||||
42d69d1a6d333a7ebdf64792a555e392 TEST_DIR/test-026/copy1
|
||||
42d69d1a6d333a7ebdf64792a555e392 TEST_DIR/test-026/copy2
|
||||
Overwrite original file with new data
|
||||
md5sums after overwriting original:
|
||||
4a847a25439532bf48b68c9e9536ed5b TEST_DIR/test-026/original
|
||||
42d69d1a6d333a7ebdf64792a555e392 TEST_DIR/test-026/copy1
|
||||
42d69d1a6d333a7ebdf64792a555e392 TEST_DIR/test-026/copy2
|
||||
Overwrite copy1 with different new data
|
||||
md5sums after overwriting copy1:
|
||||
4a847a25439532bf48b68c9e9536ed5b TEST_DIR/test-026/original
|
||||
e271cd47d9f62ebc96cb4e67ae4d16db TEST_DIR/test-026/copy1
|
||||
42d69d1a6d333a7ebdf64792a555e392 TEST_DIR/test-026/copy2
|
||||
@@ -1,25 +0,0 @@
|
||||
QA output created by 027
|
||||
Create the original files and reflink dirs
|
||||
Original md5sums:
|
||||
42d69d1a6d333a7ebdf64792a555e392 TEST_DIR/test-027/original/file1
|
||||
ca390545f0aedb54b808d6128c56a7dd TEST_DIR/test-027/original/subdir/file2
|
||||
42d69d1a6d333a7ebdf64792a555e392 TEST_DIR/test-027/copy1/file1
|
||||
ca390545f0aedb54b808d6128c56a7dd TEST_DIR/test-027/copy1/subdir/file2
|
||||
42d69d1a6d333a7ebdf64792a555e392 TEST_DIR/test-027/copy2/file1
|
||||
ca390545f0aedb54b808d6128c56a7dd TEST_DIR/test-027/copy2/subdir/file2
|
||||
Overwrite original/file1 and original/subdir/file2 with new data
|
||||
md5sums now:
|
||||
260f6785c0537fd12582dcae28a3c1a9 TEST_DIR/test-027/original/file1
|
||||
b8d91fb600f6f2191f2ba66665374860 TEST_DIR/test-027/original/subdir/file2
|
||||
42d69d1a6d333a7ebdf64792a555e392 TEST_DIR/test-027/copy1/file1
|
||||
ca390545f0aedb54b808d6128c56a7dd TEST_DIR/test-027/copy1/subdir/file2
|
||||
42d69d1a6d333a7ebdf64792a555e392 TEST_DIR/test-027/copy2/file1
|
||||
ca390545f0aedb54b808d6128c56a7dd TEST_DIR/test-027/copy2/subdir/file2
|
||||
Overwrite copy1/file1 and copy1/subdir/file2 with new data
|
||||
md5sums now:
|
||||
260f6785c0537fd12582dcae28a3c1a9 TEST_DIR/test-027/original/file1
|
||||
b8d91fb600f6f2191f2ba66665374860 TEST_DIR/test-027/original/subdir/file2
|
||||
b20229a003e3985c4b0e6806abcd6642 TEST_DIR/test-027/copy1/file1
|
||||
b815b24069db14e0a3a07169fd563e93 TEST_DIR/test-027/copy1/subdir/file2
|
||||
42d69d1a6d333a7ebdf64792a555e392 TEST_DIR/test-027/copy2/file1
|
||||
ca390545f0aedb54b808d6128c56a7dd TEST_DIR/test-027/copy2/subdir/file2
|
||||
@@ -1,7 +0,0 @@
|
||||
QA output created by 028
|
||||
Create the original files and reflink dirs
|
||||
Move orig & reflink copy to subdir and md5sum:
|
||||
42d69d1a6d333a7ebdf64792a555e392 TEST_DIR/test-028/subdir/original_moved
|
||||
42d69d1a6d333a7ebdf64792a555e392 TEST_DIR/test-028/subdir/copy_moved
|
||||
remove orig from subdir and md5sum reflink copy:
|
||||
42d69d1a6d333a7ebdf64792a555e392 TEST_DIR/test-028/subdir/copy_moved
|
||||
@@ -28,9 +28,6 @@
|
||||
023 auto
|
||||
024 auto quick compress
|
||||
025 auto quick send clone
|
||||
026 auto quick clone
|
||||
027 auto quick clone
|
||||
028 auto quick clone
|
||||
029 auto quick clone
|
||||
030 auto quick send
|
||||
031 auto quick subvol clone
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
#! /bin/bash
|
||||
# FS QA Test No. 026
|
||||
# FS QA Test No. 110
|
||||
#
|
||||
# Tests file clone functionality of btrfs ("reflinks"):
|
||||
# - Reflink a file
|
||||
@@ -0,0 +1,16 @@
|
||||
QA output created by 110
|
||||
Create the original file and reflink to copy1, copy2
|
||||
Original md5sums:
|
||||
42d69d1a6d333a7ebdf64792a555e392 TEST_DIR/test-110/original
|
||||
42d69d1a6d333a7ebdf64792a555e392 TEST_DIR/test-110/copy1
|
||||
42d69d1a6d333a7ebdf64792a555e392 TEST_DIR/test-110/copy2
|
||||
Overwrite original file with new data
|
||||
md5sums after overwriting original:
|
||||
4a847a25439532bf48b68c9e9536ed5b TEST_DIR/test-110/original
|
||||
42d69d1a6d333a7ebdf64792a555e392 TEST_DIR/test-110/copy1
|
||||
42d69d1a6d333a7ebdf64792a555e392 TEST_DIR/test-110/copy2
|
||||
Overwrite copy1 with different new data
|
||||
md5sums after overwriting copy1:
|
||||
4a847a25439532bf48b68c9e9536ed5b TEST_DIR/test-110/original
|
||||
e271cd47d9f62ebc96cb4e67ae4d16db TEST_DIR/test-110/copy1
|
||||
42d69d1a6d333a7ebdf64792a555e392 TEST_DIR/test-110/copy2
|
||||
@@ -1,5 +1,5 @@
|
||||
#! /bin/bash
|
||||
# FS QA Test No. 027
|
||||
# FS QA Test No. 111
|
||||
#
|
||||
# Tests file clone functionality of btrfs ("reflinks") on directory
|
||||
# trees.
|
||||
@@ -0,0 +1,25 @@
|
||||
QA output created by 111
|
||||
Create the original files and reflink dirs
|
||||
Original md5sums:
|
||||
42d69d1a6d333a7ebdf64792a555e392 TEST_DIR/test-111/original/file1
|
||||
ca390545f0aedb54b808d6128c56a7dd TEST_DIR/test-111/original/subdir/file2
|
||||
42d69d1a6d333a7ebdf64792a555e392 TEST_DIR/test-111/copy1/file1
|
||||
ca390545f0aedb54b808d6128c56a7dd TEST_DIR/test-111/copy1/subdir/file2
|
||||
42d69d1a6d333a7ebdf64792a555e392 TEST_DIR/test-111/copy2/file1
|
||||
ca390545f0aedb54b808d6128c56a7dd TEST_DIR/test-111/copy2/subdir/file2
|
||||
Overwrite original/file1 and original/subdir/file2 with new data
|
||||
md5sums now:
|
||||
260f6785c0537fd12582dcae28a3c1a9 TEST_DIR/test-111/original/file1
|
||||
b8d91fb600f6f2191f2ba66665374860 TEST_DIR/test-111/original/subdir/file2
|
||||
42d69d1a6d333a7ebdf64792a555e392 TEST_DIR/test-111/copy1/file1
|
||||
ca390545f0aedb54b808d6128c56a7dd TEST_DIR/test-111/copy1/subdir/file2
|
||||
42d69d1a6d333a7ebdf64792a555e392 TEST_DIR/test-111/copy2/file1
|
||||
ca390545f0aedb54b808d6128c56a7dd TEST_DIR/test-111/copy2/subdir/file2
|
||||
Overwrite copy1/file1 and copy1/subdir/file2 with new data
|
||||
md5sums now:
|
||||
260f6785c0537fd12582dcae28a3c1a9 TEST_DIR/test-111/original/file1
|
||||
b8d91fb600f6f2191f2ba66665374860 TEST_DIR/test-111/original/subdir/file2
|
||||
b20229a003e3985c4b0e6806abcd6642 TEST_DIR/test-111/copy1/file1
|
||||
b815b24069db14e0a3a07169fd563e93 TEST_DIR/test-111/copy1/subdir/file2
|
||||
42d69d1a6d333a7ebdf64792a555e392 TEST_DIR/test-111/copy2/file1
|
||||
ca390545f0aedb54b808d6128c56a7dd TEST_DIR/test-111/copy2/subdir/file2
|
||||
@@ -1,5 +1,5 @@
|
||||
#! /bin/bash
|
||||
# FS QA Test No. 028
|
||||
# FS QA Test No. 115
|
||||
#
|
||||
# Moving and deleting cloned ("reflinked") files on btrfs:
|
||||
# - Create a file and a reflink
|
||||
@@ -0,0 +1,7 @@
|
||||
QA output created by 115
|
||||
Create the original files and reflink dirs
|
||||
Move orig & reflink copy to subdir and md5sum:
|
||||
42d69d1a6d333a7ebdf64792a555e392 TEST_DIR/test-115/subdir/original_moved
|
||||
42d69d1a6d333a7ebdf64792a555e392 TEST_DIR/test-115/subdir/copy_moved
|
||||
remove orig from subdir and md5sum reflink copy:
|
||||
42d69d1a6d333a7ebdf64792a555e392 TEST_DIR/test-115/subdir/copy_moved
|
||||
@@ -112,9 +112,12 @@
|
||||
107 auto quick metadata
|
||||
108 auto quick rw
|
||||
109 auto metadata dir
|
||||
110 auto quick clone
|
||||
111 auto quick clone
|
||||
112 rw aio auto quick
|
||||
113 rw aio auto quick
|
||||
114 rw aio auto quick
|
||||
115 auto quick clone
|
||||
117 attr auto quick
|
||||
120 other auto quick
|
||||
123 perms auto quick
|
||||
|
||||
Reference in New Issue
Block a user