mirror of
https://github.com/koverstreet/bcachefs-tools.git
synced 2025-12-10 00:00:24 +03:00
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
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:
parent
28db8e8e79
commit
530e8ade4e
@ -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);
|
||||
|
||||
@ -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)
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user