Lines 28-34
Link Here
|
28 |
" -q, --quiet supresses gauges\n" |
28 |
" -q, --quiet supresses gauges\n" |
29 |
" -r ignored\n" |
29 |
" -r ignored\n" |
30 |
"Plugins options:\n" |
30 |
"Plugins options:\n" |
31 |
" -p, --print-profile prints the plugin profile.\n" |
31 |
" --print-profile prints the plugin profile.\n" |
32 |
" -l, --print-plugins prints all known plugins.\n" |
32 |
" -l, --print-plugins prints all known plugins.\n" |
33 |
" -o, --override TYPE=PLUGIN overrides the default plugin of the type\n" |
33 |
" -o, --override TYPE=PLUGIN overrides the default plugin of the type\n" |
34 |
" \"TYPE\" by the plugin \"PLUGIN\" in the\n" |
34 |
" \"TYPE\" by the plugin \"PLUGIN\" in the\n" |
Lines 39-44
Link Here
|
39 |
" -y, --yes assumes an answer 'yes' to all questions.\n" |
39 |
" -y, --yes assumes an answer 'yes' to all questions.\n" |
40 |
" -f, --force makes fsck to use whole disk, not block\n" |
40 |
" -f, --force makes fsck to use whole disk, not block\n" |
41 |
" device or mounted partition.\n" |
41 |
" device or mounted partition.\n" |
|
|
42 |
" -p, --preen automatically repair the filesysem.\n" |
42 |
" -c, --cache N number of nodes in tree buffer cache\n"); |
43 |
" -c, --cache N number of nodes in tree buffer cache\n"); |
43 |
} |
44 |
} |
44 |
|
45 |
|
Lines 140-145
Link Here
|
140 |
{"no-log", no_argument, NULL, 'n'}, |
141 |
{"no-log", no_argument, NULL, 'n'}, |
141 |
{"auto", no_argument, NULL, 'a'}, |
142 |
{"auto", no_argument, NULL, 'a'}, |
142 |
{"force", no_argument, NULL, 'f'}, |
143 |
{"force", no_argument, NULL, 'f'}, |
|
|
144 |
{"preen", no_argument, NULL, 'p'}, |
143 |
{"cache", required_argument, 0, 'c'}, |
145 |
{"cache", required_argument, 0, 'c'}, |
144 |
{"override", required_argument, NULL, 'o'}, |
146 |
{"override", required_argument, NULL, 'o'}, |
145 |
/* Fsck hidden options. */ |
147 |
/* Fsck hidden options. */ |
Lines 203-208
Link Here
|
203 |
case 'q': |
205 |
case 'q': |
204 |
aux_gauge_set_handler(NULL, GT_PROGRESS); |
206 |
aux_gauge_set_handler(NULL, GT_PROGRESS); |
205 |
break; |
207 |
break; |
|
|
208 |
case 'p': |
209 |
/* Fall through as preen should fix errors */ |
210 |
mode = RM_FIX; |
206 |
case 'y': |
211 |
case 'y': |
207 |
aal_set_bit(&data->options, FSCK_OPT_YES); |
212 |
aal_set_bit(&data->options, FSCK_OPT_YES); |
208 |
break; |
213 |
break; |
Lines 226-234
Link Here
|
226 |
case 'l': |
231 |
case 'l': |
227 |
mode = RM_SHOW_PLUG; |
232 |
mode = RM_SHOW_PLUG; |
228 |
break; |
233 |
break; |
229 |
case 'p': |
|
|
230 |
mode = RM_SHOW_PARM; |
231 |
break; |
232 |
case 'o': |
234 |
case 'o': |
233 |
aal_strncat(override, optarg, aal_strlen(optarg)); |
235 |
aal_strncat(override, optarg, aal_strlen(optarg)); |
234 |
aal_strncat(override, ",", 1); |
236 |
aal_strncat(override, ",", 1); |