From 9119319ef99ffd742349f4b91aa8caab02d38fc9 Mon Sep 17 00:00:00 2001 From: Qu Wenruo Date: Fri, 7 Oct 2016 15:22:59 +0800 Subject: [PATCH] btrfs-progs: test: Add test image for btrfsck qgroup rescan detection Fixed by commit 7c646c538e74 btrfs-progs: qgroup: Fix regression leads to corrupted qgroup status. Add minimal test image for that fix. Signed-off-by: Qu Wenruo [ minor cleanups in test.sh ] Signed-off-by: David Sterba --- .../qgroup_rescan_halfway.raw.xz | Bin 0 -> 59360 bytes .../022-qgroup-rescan-halfway/test.sh | 19 ++++++++++++++++++ 2 files changed, 19 insertions(+) create mode 100644 tests/fsck-tests/022-qgroup-rescan-halfway/qgroup_rescan_halfway.raw.xz create mode 100755 tests/fsck-tests/022-qgroup-rescan-halfway/test.sh diff --git a/tests/fsck-tests/022-qgroup-rescan-halfway/qgroup_rescan_halfway.raw.xz b/tests/fsck-tests/022-qgroup-rescan-halfway/qgroup_rescan_halfway.raw.xz new file mode 100644 index 0000000000000000000000000000000000000000..8cb620f7aaa340942b0c6f4f79bd12cbc71787a8 GIT binary patch literal 59360 zcmeEsgRd}dv)r+5+qP}nwr$(CZQHhO`@F}t-qYJOZPKJk?`^-fY4ZCEHqY$r%-2N-hCxPn3X{gwdMDeFM z4E*Ev1TScrew2#`P`c4?GAc@zz8H4Xzw9`M7*Y8^6Jyjh>d5`QEyW+kYGBVr(nP1A zRGm|0kr=bGmRYDE`ZTa`3m==iB*XPb;|K=b?;&eo4EgJ9LY8^V>+h)09c3~f>{#W3 z;La{YA|UkgtP9ea!&L@eH1hb~)zT0yEdQ8tBQY*JaMUShjs zDl3$82zX|dN-2(-m#2cZLfMI~_gi!e4=R&BVh}*wdRSw=y@fm+H;Ju^q06yfnW(?9 zCekStn9}nk&-L}BXuke%bC5D=~l1JCbGW1^J-)R9#&ynMk5t$TnZ+?fe{DNEC}W;4~jMjBzs;TAWfQM)S+3 z+pk6lHuh6=$`*j#2l)zIEfo6@_uFX^&qG&%(jr!w2DXkb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P~*pmq9CgSfLv3o4h-NEi3x`pNGkIIk5kST;(+jMRmZhgKKdmhIza814t2&<9VVzqoD@@eIbF_bHKE@|FLOvz#4gSDFk?6toM8 z)4R3QpO{EnK0Js>QAqiG?fFSo_{~my3Fe&@y<_aQM#K}1>E~ISO_Q$cr*NKgsXw`P z@=xcLUoiy#cgnKg{+j)rR5uG?Vf=)J!4BGO8dK=7(_&N^fpOWg;;2aQ(3?69Rc_K! z6EOKCeg>3$-Nt7`b$^3uN@ivIn|Rt<-FVE|@70W+Y>{GD_L zC^SH!0SfJZP@w^BInb5^ZTTPFss2lwCLkq&lmt=|NJ$1`R6(D9M(dy0>h)hVE&!$f zlS-c%wC5Nw==`vj{6>Yzaga=#Li}o8Rp|1s34>pWzzeRZlz-S2KOzQE&A)9e^Y|Ox zTGCuw|MMKEZ|V>q^v9CWn=QSk|BRR;QN~LC!kcMIInBVGkXxp|)s?S5FL-T&a^rv{ z23TUi<|Fz%-5C$L& zK-j-BFF^W#FfV|B0Rj89L;@fTKp23qV>+h`Lg1+u4Io_qAR7Py0|NGI=@UR0fG_}I zKrabc)PP0JVQZh3Po=*{-yb*{ml*2B7zGGdf8TbKE2A%-+&QDFv0E8Tv#u7Gd_gexFiF@EH9d*fKY!M5MNKUd6ohC@y&V>i1QQT fJp;kj4kP&d_~1Yw5>VL@F1{c;!ash1sHydT7WY9t literal 0 HcmV?d00001 diff --git a/tests/fsck-tests/022-qgroup-rescan-halfway/test.sh b/tests/fsck-tests/022-qgroup-rescan-halfway/test.sh new file mode 100755 index 00000000..5b114eeb --- /dev/null +++ b/tests/fsck-tests/022-qgroup-rescan-halfway/test.sh @@ -0,0 +1,19 @@ +#!/bin/bash +# check whether btrfsck can detect running qgroup rescan + +source $TOP/tests/common + +check_prereq btrfs + +check_image() { + local image + + image=$1 + run_check_stdout $TOP/btrfs check "$image" 2>&1 | \ + grep -q "Counts for qgroup id" + if [ $? -eq 0 ]; then + _fail "Btrfs check doesn't detect rescan correctly" + fi +} + +check_all_images "."