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

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
This commit is contained in:
Kent Overstreet 2025-07-07 16:22:19 -04:00
parent 39c00050d2
commit 03d7318c31

View File

@ -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 = ".";