]> www.infradead.org Git - nvme.git/commit
btrfs: introduce new "rescue=ignoremetacsums" mount option
authorQu Wenruo <wqu@suse.com>
Fri, 14 Jun 2024 04:22:30 +0000 (13:52 +0930)
committerDavid Sterba <dsterba@suse.com>
Thu, 11 Jul 2024 13:33:29 +0000 (15:33 +0200)
commit169aaaf2e0be615ffd4a12adc02db5eb86e8eee1
treeb4dab9d20c51361821c969ad9cfb042709283616
parentcf31b271e0a65fadb675a6cec433e08ab636f36d
btrfs: introduce new "rescue=ignoremetacsums" mount option

Introduce "rescue=ignoremetacsums" to ignore metadata csums, all the
other metadata sanity checks are still kept as is.

This new mount option is mostly to allow the kernel to mount an
interrupted checksum conversion (at the metadata csum overwrite stage).

And since the main part of metadata sanity checks is inside
tree-checker, we shouldn't lose much safety, and the new mount option is
rescue mount option it requires full read-only mount.

Reviewed-by: Josef Bacik <josef@toxicpanda.com>
Signed-off-by: Qu Wenruo <wqu@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/bio.c
fs/btrfs/disk-io.c
fs/btrfs/file-item.c
fs/btrfs/fs.h
fs/btrfs/messages.c
fs/btrfs/super.c
fs/btrfs/sysfs.c
fs/btrfs/zoned.c