btrfs-progs/check
Qu Wenruo 7313573c19 btrfs-progs: check: original, detect and repair ram_bytes mismatch
For non-compressed non-hole file extent items, the ram_bytes should
match disk_num_bytes.

But due to kernel bugs, we have several cases where ram_bytes is not
correctly updated.

Thankfully this is really a very minor mismatch and can never cause data
corruption since the kernel does not utilize ram_bytes for
non-compressed extents at all.

So here we just detect and repair it for original mode.

Signed-off-by: Qu Wenruo <wqu@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
2024-05-03 15:30:26 +02:00
..
common.h btrfs-progs: add extra chunk alignment checks 2024-01-16 19:14:37 +01:00
main.c btrfs-progs: check: original, detect and repair ram_bytes mismatch 2024-05-03 15:30:26 +02:00
mode-common.c btrfs-progs: reorder key initializations 2024-04-30 21:49:15 +02:00
mode-common.h btrfs-progs: check: use bool for option status variables 2024-04-30 19:34:52 +02:00
mode-lowmem.c btrfs-progs: check: lowmem, detect and repair mismatched ram_bytes 2024-05-03 15:30:08 +02:00
mode-lowmem.h btrfs-progs: check: lowmem, detect and repair mismatched ram_bytes 2024-05-03 15:30:08 +02:00
mode-original.h btrfs-progs: check: original, detect and repair ram_bytes mismatch 2024-05-03 15:30:26 +02:00
qgroup-verify.c btrfs-progs: reorder key initializations 2024-04-30 21:49:15 +02:00
qgroup-verify.h
repair.c btrfs-progs: reorder key initializations 2024-04-30 21:49:15 +02:00
repair.h btrfs-progs: clean up includes, using include-what-you-use 2023-10-03 01:11:57 +02:00