summaryrefslogtreecommitdiff
path: root/c_src
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@linux.dev>2025-03-26 10:15:24 -0400
committerKent Overstreet <kent.overstreet@linux.dev>2025-03-26 10:15:26 -0400
commit19d3a1778cb6014f776d26b37738610c90c893fd (patch)
tree4a83cce93240ecdad3b1faff0608af890b7555d4 /c_src
parente54f28899255fcd8f92b005a088de23e70241f0e (diff)
fsck: Kill -R, --reconstruct_alloc
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>
Diffstat (limited to 'c_src')
-rw-r--r--c_src/cmd_fsck.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/c_src/cmd_fsck.c b/c_src/cmd_fsck.c
index 859ec731..6166328c 100644
--- a/c_src/cmd_fsck.c
+++ b/c_src/cmd_fsck.c
@@ -21,7 +21,6 @@ static void fsck_usage(void)
" -y Assume \"yes\" to all questions\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, --reconstruct_alloc Reconstruct the alloc btree\n"
" -k, --kernel Use the in-kernel fsck implementation\n"
" -v Be verbose\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[] = {
{ "ratelimit_errors", no_argument, NULL, 'r' },
- { "reconstruct_alloc", no_argument, NULL, 'R' },
{ "kernel", no_argument, NULL, 'k' },
{ "no-kernel", no_argument, NULL, 'K' },
{ "help", no_argument, NULL, 'h' },
@@ -224,7 +222,7 @@ int cmd_fsck(int argc, char *argv[])
append_opt(&opts_str, "read_only");
while ((opt = getopt_long(argc, argv,
- "apynfo:rRkKvh",
+ "apynfo:rkKvh",
longopts, NULL)) != -1)
switch (opt) {
case 'a':
@@ -248,9 +246,6 @@ int cmd_fsck(int argc, char *argv[])
case 'r':
append_opt(&opts_str, "ratelimit_errors");
break;
- case 'R':
- append_opt(&opts_str, "reconstruct_alloc");
- break;
case 'k':
kernel = true;
break;