* patch [2/4] reiser4progs: make -p preen
@ 2009-01-09 0:16 Edward Shishkin
0 siblings, 0 replies; only message in thread
From: Edward Shishkin @ 2009-01-09 0:16 UTC (permalink / raw)
To: Reiserfs mailing list
[-- Attachment #1: Type: text/plain, Size: 2 bytes --]
[-- Attachment #2: reiser4progs-make-p-preen.patch --]
[-- Type: text/x-patch, Size: 3006 bytes --]
Alias -p "preen" to -a "auto"
Fix by Anders Aagaard <aagaande@gmail.com>
Signed-off-by: Edward Shishkin<edward.shishkin@gmail.com>
---
reiser4progs-1.0.6-orig/doc/fsck.reiser4.8 | 5 ++++-
reiser4progs-1.0.6-orig/progs/fsck/fsck.c | 9 +++++----
2 files changed, 9 insertions(+), 5 deletions(-)
--- reiser4progs-1.0.6-orig/doc/fsck.reiser4.8.orig
+++ reiser4progs-1.0.6-orig/doc/fsck.reiser4.8
@@ -54,7 +54,7 @@ supresses gauges.
ignored.
.SH PLUGIN OPTIONS
.TP
-.B -p, --print-profile
+.B --print-profile
prints the plugin profile. This is the set of default plugins used for all
parts of a filesystem -- format, nodes, files, directories, hashes, etc. If
--override is specified, then prints modified plugins.
@@ -82,6 +82,9 @@ assumes an answer 'yes' to all questions
.B -f, --force
forces fsck to use whole disk, not block device or mounted partition.
.TP
+.B -p, --preen
+automatically repair minor corruptions on the filesystem.
+.TP
.B -c, --cache N
tunes number of nodes in the libreiser4 tree buffer cache
.RS
--- reiser4progs-1.0.6-orig/progs/fsck/fsck.c.orig
+++ reiser4progs-1.0.6-orig/progs/fsck/fsck.c
@@ -28,7 +28,7 @@ static void fsck_print_usage(char *name)
" -q, --quiet supresses gauges\n"
" -r ignored\n"
"Plugins options:\n"
- " -p, --print-profile prints the plugin profile.\n"
+ " --print-profile prints the plugin profile.\n"
" -l, --print-plugins prints all known plugins.\n"
" -o, --override TYPE=PLUGIN overrides the default plugin of the type\n"
" \"TYPE\" by the plugin \"PLUGIN\" in the\n"
@@ -39,6 +39,7 @@ static void fsck_print_usage(char *name)
" -y, --yes assumes an answer 'yes' to all questions.\n"
" -f, --force makes fsck to use whole disk, not block\n"
" device or mounted partition.\n"
+ " -p, --preen automatically repair the filesysem.\n"
" -c, --cache N number of nodes in tree buffer cache\n");
}
@@ -140,6 +141,7 @@ static errno_t fsck_init(fsck_parse_t *d
{"no-log", no_argument, NULL, 'n'},
{"auto", no_argument, NULL, 'a'},
{"force", no_argument, NULL, 'f'},
+ {"preen", no_argument, NULL, 'p'},
{"cache", required_argument, 0, 'c'},
{"override", required_argument, NULL, 'o'},
/* Fsck hidden options. */
@@ -190,6 +192,8 @@ static errno_t fsck_init(fsck_parse_t *d
case 'f':
aal_set_bit(&data->options, FSCK_OPT_FORCE);
break;
+ case 'p':
+ /* Fall through to auto, as preen is an alias for -a */
case 'a':
aal_set_bit(&data->options, FSCK_OPT_AUTO);
break;
@@ -226,9 +230,6 @@ static errno_t fsck_init(fsck_parse_t *d
case 'l':
mode = RM_SHOW_PLUG;
break;
- case 'p':
- mode = RM_SHOW_PARM;
- break;
case 'o':
aal_strncat(override, optarg, aal_strlen(optarg));
aal_strncat(override, ",", 1);
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2009-01-09 0:16 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-01-09 0:16 patch [2/4] reiser4progs: make -p preen Edward Shishkin
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.