device_scan now uses no_version_check
Some checks failed
build / bcachefs-tools-deb (ubuntu-24.04) (push) Has been cancelled
build / bcachefs-tools-rpm (push) Has been cancelled
build / bcachefs-tools-msrv (push) Has been cancelled
Nix Flake actions / nix-matrix (push) Has been cancelled
Nix Flake actions / ${{ matrix.name }} (${{ matrix.system }}) (push) Has been cancelled

Fix a compatibility issue - old tools can now mount newer filesystems
with incompatible features, even if they can't do anything else with
them.

cmd_show_super now uses no_version_check as well.

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
This commit is contained in:
Kent Overstreet 2025-08-08 19:34:08 -04:00
parent 28db8e8e79
commit 530e8ade4e
2 changed files with 2 additions and 0 deletions

View File

@ -159,6 +159,7 @@ int cmd_show_super(int argc, char *argv[])
opt_set(opts, noexcl, true);
opt_set(opts, nochanges, true);
opt_set(opts, no_version_check, true);
struct bch_sb_handle sb;
int ret = bch2_read_super(dev, &opts, &sb);

View File

@ -19,6 +19,7 @@ use log::debug;
fn read_super_silent(path: impl AsRef<Path>, mut opts: bch_opts) -> anyhow::Result<bch_sb_handle> {
opt_set!(opts, noexcl, 1);
opt_set!(opts, no_version_check, 1);
bch_bindgen::sb_io::read_super_silent(path.as_ref(), opts)
}