From ab0d369525fd66cc54ad095297d8ce13f2dc3b57 Mon Sep 17 00:00:00 2001 From: Qu Wenruo Date: Wed, 9 Jun 2021 14:27:43 +0800 Subject: [PATCH] btrfs-progs: tests/fsck: add test case to make sure btrfs check can reset btrfs_dev_item::bytes_used The test image is manually crafted with 1MiB offset in the device item of devid 1. Signed-off-by: Qu Wenruo Signed-off-by: David Sterba --- .../047-dev-bytes-used/.lowmem_repairable | 0 .../047-dev-bytes-used/default_case.img.xz | Bin 0 -> 1896 bytes 2 files changed, 0 insertions(+), 0 deletions(-) create mode 100644 tests/fsck-tests/047-dev-bytes-used/.lowmem_repairable create mode 100644 tests/fsck-tests/047-dev-bytes-used/default_case.img.xz diff --git a/tests/fsck-tests/047-dev-bytes-used/.lowmem_repairable b/tests/fsck-tests/047-dev-bytes-used/.lowmem_repairable new file mode 100644 index 00000000..e69de29b diff --git a/tests/fsck-tests/047-dev-bytes-used/default_case.img.xz b/tests/fsck-tests/047-dev-bytes-used/default_case.img.xz new file mode 100644 index 0000000000000000000000000000000000000000..28100c185cb6f6f3ec342434e9605b6faea135af GIT binary patch literal 1896 zcmV-u2bcK$H+ooF000E$*0e?f03iV!0000G&sfah3;zcvT>wRyj;C3^v%$$4d1r37 zhA1?^l*EwT&`2;%+k$2qTzvcu_1VWR^-%HwDSdt;?O?Zv=Fg3@*=?0nwn@>Qd((0B zTl6=<_aN#$pzxq!v^}THd6ZZYL;WiCQr=(9tK3^OkjJsM zBvU?_TCVZh!~c*O(Ic5@W$?_=1uP(>cD|QD$rz30uK!QN`#aJ^*xCb-ghGyUpVp@4 z48y40^_Z0-X}T1N>8(iQ)h@9qJCTuddv7L40M(K8`IaYKcRuxW8thkcB8VS88F&fK z0P#+k(MHZR&T*Luh{-%JUiiRSy3fA)9h9cnI(|`W>wZ z@UDXcMp?K}e4BJSl?v{%5DD?7Q}5%b`c_uh2KLs(i+zh5Xq zke(P#tBjvo-^tXNU>}TJr#%hNPuwHOp@C-C^O>gX8h_vg=M&uU0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