]> git.dujemihanovic.xyz Git - linux.git/commit
bcachefs: add no_invalid_checks flag
authorThomas Bertschinger <tahbertschinger@gmail.com>
Thu, 9 May 2024 18:37:24 +0000 (12:37 -0600)
committerKent Overstreet <kent.overstreet@linux.dev>
Thu, 9 May 2024 20:24:30 +0000 (16:24 -0400)
commit07f9a27f1969764d11374942961d51fee0ab628f
treee40032170f5c2ee3701119cda325dc1f1330b857
parentbceacfa97ec8b67a76efad2f95899434230b317c
bcachefs: add no_invalid_checks flag

Setting this flag on a filesystem results in validity checks being
skipped when writing bkeys. This flag will be used by tooling that
deliberately injects corruption into a filesystem in order to exercise
fsck. It shouldn't be set outside of testing/debugging code.

Signed-off-by: Thomas Bertschinger <tahbertschinger@gmail.com>
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
fs/bcachefs/bcachefs.h
fs/bcachefs/bkey_methods.c