mirror of
https://github.com/koverstreet/bcachefs-tools.git
synced 2025-12-10 00:00:24 +03:00
fsck: Kill -R, --reconstruct_alloc
Some checks are pending
build / bcachefs-tools-deb (ubuntu-22.04) (push) Waiting to run
build / bcachefs-tools-deb (ubuntu-24.04) (push) Waiting to run
build / bcachefs-tools-rpm (push) Waiting to run
build / bcachefs-tools-msrv (push) Waiting to run
Nix-Tests / nix-flake-check (push) Waiting to run
Some checks are pending
build / bcachefs-tools-deb (ubuntu-22.04) (push) Waiting to run
build / bcachefs-tools-deb (ubuntu-24.04) (push) Waiting to run
build / bcachefs-tools-rpm (push) Waiting to run
build / bcachefs-tools-msrv (push) Waiting to run
Nix-Tests / nix-flake-check (push) Waiting to run
We don't want users hitting this accidentally, and if needed for some strange reason (it shouldn't be), it can still be specified via -o. Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
This commit is contained in:
parent
e54f288992
commit
19d3a1778c
@ -21,7 +21,6 @@ static void fsck_usage(void)
|
|||||||
" -y Assume \"yes\" to all questions\n"
|
" -y Assume \"yes\" to all questions\n"
|
||||||
" -f Force checking even if filesystem is marked clean\n"
|
" -f Force checking even if filesystem is marked clean\n"
|
||||||
" -r, --ratelimit_errors Don't display more than 10 errors of a given type\n"
|
" -r, --ratelimit_errors Don't display more than 10 errors of a given type\n"
|
||||||
" -R, --reconstruct_alloc Reconstruct the alloc btree\n"
|
|
||||||
" -k, --kernel Use the in-kernel fsck implementation\n"
|
" -k, --kernel Use the in-kernel fsck implementation\n"
|
||||||
" -v Be verbose\n"
|
" -v Be verbose\n"
|
||||||
" -h, --help Display this help and exit\n"
|
" -h, --help Display this help and exit\n"
|
||||||
@ -205,7 +204,6 @@ int cmd_fsck(int argc, char *argv[])
|
|||||||
{
|
{
|
||||||
static const struct option longopts[] = {
|
static const struct option longopts[] = {
|
||||||
{ "ratelimit_errors", no_argument, NULL, 'r' },
|
{ "ratelimit_errors", no_argument, NULL, 'r' },
|
||||||
{ "reconstruct_alloc", no_argument, NULL, 'R' },
|
|
||||||
{ "kernel", no_argument, NULL, 'k' },
|
{ "kernel", no_argument, NULL, 'k' },
|
||||||
{ "no-kernel", no_argument, NULL, 'K' },
|
{ "no-kernel", no_argument, NULL, 'K' },
|
||||||
{ "help", no_argument, NULL, 'h' },
|
{ "help", no_argument, NULL, 'h' },
|
||||||
@ -224,7 +222,7 @@ int cmd_fsck(int argc, char *argv[])
|
|||||||
append_opt(&opts_str, "read_only");
|
append_opt(&opts_str, "read_only");
|
||||||
|
|
||||||
while ((opt = getopt_long(argc, argv,
|
while ((opt = getopt_long(argc, argv,
|
||||||
"apynfo:rRkKvh",
|
"apynfo:rkKvh",
|
||||||
longopts, NULL)) != -1)
|
longopts, NULL)) != -1)
|
||||||
switch (opt) {
|
switch (opt) {
|
||||||
case 'a':
|
case 'a':
|
||||||
@ -248,9 +246,6 @@ int cmd_fsck(int argc, char *argv[])
|
|||||||
case 'r':
|
case 'r':
|
||||||
append_opt(&opts_str, "ratelimit_errors");
|
append_opt(&opts_str, "ratelimit_errors");
|
||||||
break;
|
break;
|
||||||
case 'R':
|
|
||||||
append_opt(&opts_str, "reconstruct_alloc");
|
|
||||||
break;
|
|
||||||
case 'k':
|
case 'k':
|
||||||
kernel = true;
|
kernel = true;
|
||||||
break;
|
break;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user