mirror of
https://github.com/koverstreet/bcachefs-tools.git
synced 2025-12-09 00:00:17 +03:00
cmd_data: scrub is bcachefs data scrub, not bcachefs data job scrub
Some checks failed
build / bcachefs-tools-deb (ubuntu-22.04) (push) Has been cancelled
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-22.04) (push) Has been cancelled
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
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
This commit is contained in:
parent
39c00050d2
commit
03d7318c31
@ -315,6 +315,9 @@ static int cmd_data_job(int argc, char *argv[])
|
|||||||
|
|
||||||
op.op = read_string_list_or_die(job, bch2_data_ops_strs, "bad job type");
|
op.op = read_string_list_or_die(job, bch2_data_ops_strs, "bad job type");
|
||||||
|
|
||||||
|
if (op.op == BCH_DATA_OP_scrub)
|
||||||
|
die("scrub should be invoked with 'bcachefs data scrub'");
|
||||||
|
|
||||||
char *fs_path = arg_pop();
|
char *fs_path = arg_pop();
|
||||||
if (!fs_path)
|
if (!fs_path)
|
||||||
fs_path = ".";
|
fs_path = ".";
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user