From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([69.77.167.62] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1K2VCO-0004uq-Iu for garchives@archives.gentoo.org; Sat, 31 May 2008 17:49:00 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 1A7E9E030B; Sat, 31 May 2008 17:49:00 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id C532CE030B for ; Sat, 31 May 2008 17:48:59 +0000 (UTC) Received: from stork.gentoo.org (stork.gentoo.org [64.127.104.133]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTP id 3867A66A03 for ; Sat, 31 May 2008 17:48:59 +0000 (UTC) Received: from vapier by stork.gentoo.org with local (Exim 4.69) (envelope-from ) id 1K2VCJ-0004Lf-AF for gentoo-commits@lists.gentoo.org; Sat, 31 May 2008 17:48:55 +0000 From: "Mike Frysinger (vapier)" To: gentoo-commits@lists.gentoo.org Reply-To: gentoo-dev@lists.gentoo.org, vapier@gentoo.org Subject: [gentoo-commits] gentoo-x86 commit in sys-fs/reiser4progs/files: reiser4progs-1.0.6-preen.patch X-VCS-Repository: gentoo-x86 X-VCS-Files: reiser4progs-1.0.6-preen.patch X-VCS-Directories: sys-fs/reiser4progs/files X-VCS-Committer: vapier X-VCS-Committer-Name: Mike Frysinger Content-Type: text/plain; charset=utf8 Message-Id: Sender: Mike Frysinger Date: Sat, 31 May 2008 17:48:55 +0000 Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: quoted-printable X-Archives-Salt: d04c4ed4-52c4-4889-8083-93a81408ba06 X-Archives-Hash: 96393f8c01ac7f44c53ac98499f782ff 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 Marpl= es. (Portage version: 2.2_pre5.spank.spunk) Revision Changes Path 1.1 sys-fs/reiser4progs/files/reiser4progs-1.0.6-preen.p= atch file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-fs/reiser4prog= s/files/reiser4progs-1.0.6-preen.patch?rev=3D1.1&view=3Dmarkup plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-fs/reiser4prog= s/files/reiser4progs-1.0.6-preen.patch?rev=3D1.1&content-type=3Dtext/plai= n Index: reiser4progs-1.0.6-preen.patch =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D 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 a= ll 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=3DPLUGIN overrides the default plugin of the= type\n" " \"TYPE\" by the plugin \"PLUGI= N\" in the\n" @@ -39,6 +39,7 @@ " -y, --yes assumes an answer 'yes' to all questi= ons.\n" " -f, --force makes fsck to use whole disk, not blo= ck\n" " device or mounted partition.\n" + " -p, --preen automatically repair the filesysem.\n= " " -c, --cache N number of nodes in tree buffer cache\= n"); } =20 @@ -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 =3D RM_FIX; case 'y': aal_set_bit(&data->options, FSCK_OPT_YES); break; @@ -226,9 +231,6 @@ case 'l': mode =3D RM_SHOW_PLUG; break; - case 'p': - mode =3D RM_SHOW_PARM; - break; case 'o': aal_strncat(override, optarg, aal_strlen(optarg)); aal_strncat(override, ",", 1); --=20 gentoo-commits@lists.gentoo.org mailing list