/[gentoo-x86]/sys-fs/reiser4progs/files/reiser4progs-1.0.6-preen.patch
Gentoo

Diff of /sys-fs/reiser4progs/files/reiser4progs-1.0.6-preen.patch

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.1 Revision 1.2
1make -p mean "preen" like all other checkers 1Alias -p "preen" to -a "auto".
2 2
3http://bugs.gentoo.org/195988 3http://bugs.gentoo.org/195988
4 4
5--- a/doc/fsck.reiser4.8 5--- a/doc/fsck.reiser4.8
6+++ b/doc/fsck.reiser4.8 6+++ b/doc/fsck.reiser4.8
48 {"force", no_argument, NULL, 'f'}, 48 {"force", no_argument, NULL, 'f'},
49+ {"preen", no_argument, NULL, 'p'}, 49+ {"preen", no_argument, NULL, 'p'},
50 {"cache", required_argument, 0, 'c'}, 50 {"cache", required_argument, 0, 'c'},
51 {"override", required_argument, NULL, 'o'}, 51 {"override", required_argument, NULL, 'o'},
52 /* Fsck hidden options. */ 52 /* Fsck hidden options. */
53@@ -203,6 +205,9 @@ 53@@ -190,6 +192,8 @@
54 case 'q': 54 case 'f':
55 aux_gauge_set_handler(NULL, GT_PROGRESS); 55 aal_set_bit(&data->options, FSCK_OPT_FORCE);
56 break; 56 break;
57+ case 'p': 57+ case 'p':
58+ /* Fall through as preen should fix errors */ 58+ /* Fall through to auto, as preen is an alias for -a */
59+ mode = RM_FIX;
60 case 'y': 59 case 'a':
61 aal_set_bit(&data->options, FSCK_OPT_YES); 60 aal_set_bit(&data->options, FSCK_OPT_AUTO);
62 break; 61 break;
63@@ -226,9 +231,6 @@ 62@@ -226,9 +230,6 @@
64 case 'l': 63 case 'l':
65 mode = RM_SHOW_PLUG; 64 mode = RM_SHOW_PLUG;
66 break; 65 break;
67- case 'p': 66- case 'p':
68- mode = RM_SHOW_PARM; 67- mode = RM_SHOW_PARM;

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

  ViewVC Help
Powered by ViewVC 1.1.20