btrfs-progs: tests: Extend metadata uuid testcase
diff mbox series

Message ID 20200110122333.8272-1-nborisov@suse.com
State New
Headers show
Series
  • btrfs-progs: tests: Extend metadata uuid testcase
Related show

Commit Message

Nikolay Borisov Jan. 10, 2020, 12:23 p.m. UTC
This adds cooked images to exercise the case when a filesystem with
metadata uuid incompat flag is switched back to having fsid/metadata
uuid being equal.

Signed-off-by: Nikolay Borisov <nborisov@suse.com>
---
 tests/misc-tests/034-metadata-uuid/disk7.raw.xz | Bin 0 -> 314456 bytes
 tests/misc-tests/034-metadata-uuid/disk8.raw.xz | Bin 0 -> 313708 bytes
 tests/misc-tests/034-metadata-uuid/test.sh      |  25 ++++++++++++++++++++++++
 3 files changed, 25 insertions(+)
 create mode 100644 tests/misc-tests/034-metadata-uuid/disk7.raw.xz
 create mode 100644 tests/misc-tests/034-metadata-uuid/disk8.raw.xz

Comments

David Sterba Jan. 13, 2020, 9:09 p.m. UTC | #1
On Fri, Jan 10, 2020 at 02:23:33PM +0200, Nikolay Borisov wrote:
> This adds cooked images to exercise the case when a filesystem with
> metadata uuid incompat flag is switched back to having fsid/metadata
> uuid being equal.
> 
> Signed-off-by: Nikolay Borisov <nborisov@suse.com>

Applied, thanks.

Patch
diff mbox series

diff --git a/tests/misc-tests/034-metadata-uuid/disk7.raw.xz b/tests/misc-tests/034-metadata-uuid/disk7.raw.xz
new file mode 100644
index 0000000000000000000000000000000000000000..131d49718de95e9c0212082298e9b5e539c8deea
GIT binary patch
literal 314456
zcmeI*`Crd@zsK=!s1V9kw4n@5DOzkrlp&>(K{BN%ZCtczQ6gneB&nt($`Z<2Cdrh_
zRMs>kkx`UosD><UTCVGMoAbk&b21l3!?~S@f1tU&=lyxVp7-bX^L>9?wf!yU2?X69
z-}=F@i(s(O0D(XtQDk|wy?tmm^Z5dSdux09{`7Vuy=nbC$1R+7W{1k-{ToG_etS4*
zZLvoF_z6O$DXTAqgqUgU?|momVAa+kea-J%$>jTlRQfiajtuOzB&Xcl*wJQRyIWaJ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*5j28E&<GkqBWMJTppgqS
zf=18?8bKpy1dX5(G=fIZ2pT~nXmkx4K_h4cji3=Uf=18?8bKpy1dX5(G>U>o&<Gkq
zBWMJTpb<2JM$iZvK_h4cjl7`|G=fIZ2pT~nXatR*5j28E&<GkqBVlL+ji3=Uf=18?
z8bKpy1dX5(G=fIZNDCT4BWMJTpb<2JM$iZvK_h4cji3=U@`Fau2pT~nXatR*5j28E
z&<GkqBWMJT%AgT6f=18?8bKpy1dX5(G=fIZ2pT~nb7%yOpb<2JM$iZvK_h4cji3=U
zf=19N4;n!uXatR*5j28E&<GkqBWMJTpb<2(f=18?8bKpy1dX5(G=fIZ2pT~nXatR3
zLL+Ddji3=Uf=18?8bKpy1dX5(G=fI!pb<2JM$iZvK_h4cji3=Uf=18?8bKpfXatR*
z5j6V$NTYQbi2@ZtjhFeM)^o>Ky_-f=BClUn2n35;u1{axMN>i`bTURV=->ak3j|YY
T%e|zebv3&R{{63;)x3WJZwDWx

literal 0
HcmV?d00001

diff --git a/tests/misc-tests/034-metadata-uuid/disk8.raw.xz b/tests/misc-tests/034-metadata-uuid/disk8.raw.xz
new file mode 100644
index 0000000000000000000000000000000000000000..993c836eeba1d0139e083d9a334041b93c172afa
GIT binary patch
literal 313708
zcmeI*c~sB&9>?)t{fcZA$(q!peWbdCQivO(OocYuMo}cC1-GOu6{Qp-p=4_$N|v%E
zWNDHZ!&tJXG?Hav(xN-}&N=s-xpU0zXZq>>@$~ncW6s<A`+dJ2pYQwo{WT9?>fj_0
zNLAiEY#}L7l~5801oCALms?t7g!Z!p0>9>#mYsPm6U-(m28?vK$xqa(+_}2r``QZS
z$m>JS8;_Ehd~jLunl)BKc6PfRzUN7-T6epLj(yGtt$7?$e{@55SD(WBfs<y>Og%qo
z{<D;ZTgt{$<nu223Vr&WusN*L`GK&Z__@O2A3Anc-Mp^Ltd;>CZ#CtNpYkwai<R<3
z{YcBxJ4$4S&#LO$qmM+X%=YK$TRiUX(H=QiX8)Mvm$xIL(~hZld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E&<GkqBWMJTpb<2J
zM$iZvL8Az01dX5(G=fIZ2pT~nXatR*5j28E&}cq1f=18?8bKpy1dX5(G=fIZ2pT~n
zXmkY{K_h4cji3=Uf=18?8bKpy1dX5(G};J_pb<2JM$iZvK_h4cji3=Uf=18?8U;cl
zXatR*5j28E&<GkqBWMJTpb<2JM$*s-8vQRCtvG&Epe3kTWS7xga3Iv+qXnzH|Ap;T
s!LNUgmwz*}d`<oZfyCKFh2_8gkr4<M8&2ujv$u)9@L&Idl%vx>0TK6>Gynhq

literal 0
HcmV?d00001

diff --git a/tests/misc-tests/034-metadata-uuid/test.sh b/tests/misc-tests/034-metadata-uuid/test.sh
index 6ac55b1cacfa..2b7c659998cf 100755
--- a/tests/misc-tests/034-metadata-uuid/test.sh
+++ b/tests/misc-tests/034-metadata-uuid/test.sh
@@ -155,11 +155,27 @@  check_completed() {
 	[ $? -eq 0 ] || _fail "metadata_uuid not set on $2"
 }
 
+check_flag_cleared() {
+	# Ensure METADATA_UUID is not set. 
+	run_check_stdout $SUDO_HELPER "$TOP/btrfs" inspect-internal dump-super \
+		"$1" | grep -q METADATA_UUID
+	[ $? -eq 1 ] || _fail "metadata_uuid not set on $1"
+
+	run_check_stdout $SUDO_HELPER "$TOP/btrfs" inspect-internal dump-super \
+		"$2" | grep -q METADATA_UUID
+	[ $? -eq 1 ] || _fail "metadata_uuid not set on $2"
+}
+
 check_multi_fsid_change() {
 	check_inprogress_flag "$1" "$2"
 	check_completed "$1" "$2"
 }
 
+check_multi_fsid_unchanged() {
+	check_inprogress_flag "$1" "$2"
+	check_flag_cleared "$1" "$2"
+}
+
 failure_recovery() {
 	local image1
 	local image2
@@ -227,3 +243,12 @@  failure_recovery "./disk4.raw.xz" "./disk3.raw.xz" check_completed
 failure_recovery "./disk5.raw.xz" "./disk6.raw.xz" check_multi_fsid_change
 reload_btrfs
 failure_recovery "./disk6.raw.xz" "./disk5.raw.xz" check_multi_fsid_change
+
+# disk7 contains an image which has undergone a successful fsid change once to 
+# a different value and once back to the original one, disk8 is part of the 
+# same filesystem but in this case it has missed the second transaction commit
+# during the process change. So disk 7 looks as if it never underwent fsid change
+# and disk 8 has FSID_CHANGING_FLAG and METADATA_UUID but is stale. 
+failure_recovery "./disk7.raw.xz" "./disk8.raw.xz" check_multi_fsid_unchanged
+reload_btrfs
+failure_recovery "./disk8.raw.xz" "./disk7.raw.xz" check_multi_fsid_unchanged