diff mbox series

[v3,8/9] btrfs-progs: test: add a test image with a corrupt block group item

Message ID f55af588317b5c3f1d70634b0202c6fa19bb19a8.1629746415.git.josef@toxicpanda.com (mailing list archive)
State New, archived
Headers show
Series btrfs-progs: make check handle invalid bg items | expand

Commit Message

Josef Bacik Aug. 23, 2021, 7:23 p.m. UTC
This image has a broken used field of a block group item to validate
fsck does the correct thing.

Signed-off-by: Josef Bacik <josef@toxicpanda.com>
---
 tests/fsck-tests/050-invalid-block-group-used/.lowmem_repairable | 0
 1 file changed, 0 insertions(+), 0 deletions(-)
 create mode 100644 tests/fsck-tests/050-invalid-block-group-used/.lowmem_repairable

Comments

David Sterba Aug. 24, 2021, 5 p.m. UTC | #1
On Mon, Aug 23, 2021 at 03:23:12PM -0400, Josef Bacik wrote:
> This image has a broken used field of a block group item to validate
> fsck does the correct thing.

Should there be a new image or are you just adding the
.lowmem_repairable file to trigger lowmem repair?
David Sterba Aug. 25, 2021, 1:27 p.m. UTC | #2
On Tue, Aug 24, 2021 at 07:00:20PM +0200, David Sterba wrote:
> On Mon, Aug 23, 2021 at 03:23:12PM -0400, Josef Bacik wrote:
> > This image has a broken used field of a block group item to validate
> > fsck does the correct thing.
> 
> Should there be a new image or are you just adding the
> .lowmem_repairable file to trigger lowmem repair?

Merged with patch from v2 that contained the image.
diff mbox series

Patch

diff --git a/tests/fsck-tests/050-invalid-block-group-used/.lowmem_repairable b/tests/fsck-tests/050-invalid-block-group-used/.lowmem_repairable
new file mode 100644
index 00000000..e69de29b