public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
Search results ordered by [date|relevance]  view[summary|nested|Atom feed]
thread overview below | download mbox.gz: |
* [gentoo-commits] gentoo-x86 commit in sys-fs/reiser4progs/files: reiser4progs-1.0.6-preen.patch
@ 2008-05-31 17:48 99% Mike Frysinger (vapier)
  0 siblings, 0 replies; 1+ results
From: Mike Frysinger (vapier) @ 2008-05-31 17:48 UTC (permalink / raw
  To: gentoo-commits

vapier      08/05/31 17:48:55

  Added:                reiser4progs-1.0.6-preen.patch
  Log:
  Change the meaning of -p to --preen #195988 by Radu Benea and Roy Marples.
  (Portage version: 2.2_pre5.spank.spunk)

Revision  Changes    Path
1.1                  sys-fs/reiser4progs/files/reiser4progs-1.0.6-preen.patch

file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-fs/reiser4progs/files/reiser4progs-1.0.6-preen.patch?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-fs/reiser4progs/files/reiser4progs-1.0.6-preen.patch?rev=1.1&content-type=text/plain

Index: reiser4progs-1.0.6-preen.patch
===================================================================
make -p mean "preen" like all other checkers

http://bugs.gentoo.org/195988

--- a/doc/fsck.reiser4.8
+++ b/doc/fsck.reiser4.8
@@ -54,7 +54,7 @@
 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 @@
 .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
--- a/progs/fsck/fsck.c
+++ b/progs/fsck/fsck.c
@@ -28,7 +28,7 @@
 		"  -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 @@
 		"  -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 @@
 		{"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. */
@@ -203,6 +205,9 @@
 		case 'q':
 			aux_gauge_set_handler(NULL, GT_PROGRESS);
 			break;
+		case 'p':
+			/* Fall through as preen should fix errors */
+			mode = RM_FIX;
 		case 'y':
 			aal_set_bit(&data->options, FSCK_OPT_YES);
 			break;
@@ -226,9 +231,6 @@
 		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);



-- 
gentoo-commits@lists.gentoo.org mailing list



^ permalink raw reply	[relevance 99%]

Results 1-1 of 1 | reverse | options above
-- pct% links below jump to the message on this page, permalinks otherwise --
2008-05-31 17:48 99% [gentoo-commits] gentoo-x86 commit in sys-fs/reiser4progs/files: reiser4progs-1.0.6-preen.patch Mike Frysinger (vapier)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox