* [PATCH] btrfs-progs: convert-tests: Add test for backup superblock migration
@ 2016-06-01 1:51 Qu Wenruo
2016-06-01 13:39 ` David Sterba
0 siblings, 1 reply; 2+ messages in thread
From: Qu Wenruo @ 2016-06-01 1:51 UTC (permalink / raw)
To: dsterba, linux-btrfs
New convert framework uses new and simpler chunk layout, while the cost
is the more complex superblock range migration logical, compared to old
convert.
Enhance the convert test script to create file which will takes up 2nd
backup superblock space, to ensure the superblock migration is working
as expected.
Suggested-by: David Sterba <dsterba@suse.cz>
Signed-off-by: Qu Wenruo <quwenruo@cn.fujitsu.com>
---
tests/convert-tests.sh | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/tests/convert-tests.sh b/tests/convert-tests.sh
index 06d8419..d4e13d6 100755
--- a/tests/convert-tests.sh
+++ b/tests/convert-tests.sh
@@ -124,6 +124,12 @@ convert_test() {
# create a file to check btrfs-convert can convert regular file
# correct
run_check_mount_test_dev
+
+ # create a file inside the fs before convert, to make sure there is
+ # data covering btrfs backup superblock range (64M)
+ run_check $SUDO_HELPER dd if=/dev/zero bs=1M count=64 \
+ of=$TEST_MNT/convert_space_holder
+
populate_fs
run_check $SUDO_HELPER dd if=/dev/zero of=$TEST_MNT/test bs=$nodesize \
count=1 >/dev/null 2>&1
--
2.8.3
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] btrfs-progs: convert-tests: Add test for backup superblock migration
2016-06-01 1:51 [PATCH] btrfs-progs: convert-tests: Add test for backup superblock migration Qu Wenruo
@ 2016-06-01 13:39 ` David Sterba
0 siblings, 0 replies; 2+ messages in thread
From: David Sterba @ 2016-06-01 13:39 UTC (permalink / raw)
To: Qu Wenruo; +Cc: dsterba, linux-btrfs
On Wed, Jun 01, 2016 at 09:51:21AM +0800, Qu Wenruo wrote:
> New convert framework uses new and simpler chunk layout, while the cost
> is the more complex superblock range migration logical, compared to old
> convert.
>
> Enhance the convert test script to create file which will takes up 2nd
> backup superblock space, to ensure the superblock migration is working
> as expected.
>
> Suggested-by: David Sterba <dsterba@suse.cz>
> Signed-off-by: Qu Wenruo <quwenruo@cn.fujitsu.com>
Applied, thanks.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2016-06-01 13:40 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-06-01 1:51 [PATCH] btrfs-progs: convert-tests: Add test for backup superblock migration Qu Wenruo
2016-06-01 13:39 ` David Sterba
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.