lede-packages-rs

git clone git://archive.git.mtrnord.blog/MTRNord/lede-packages-rs.git
Log | Files | Refs | README | LICENSE

0008-Provide-command-line-option-a.patch (1510B)


      1 From: =?UTF-8?q?Rog=C3=A9rio=20Brito?= <rbrito@ime.usp.br>
      2 Date: Thu, 24 Oct 2013 01:11:21 -0200
      3 Subject: Provide command line option -a
      4 
      5 Create a new command line option (-a) for the fsck.hfsplus that has the same
      6 behavior that the -p option has, for greater compatibility with other tools.
      7 ---
      8  fsck_hfs.tproj/fsck_hfs.c | 5 +++--
      9  1 file changed, 3 insertions(+), 2 deletions(-)
     10 
     11 diff --git a/fsck_hfs.tproj/fsck_hfs.c b/fsck_hfs.tproj/fsck_hfs.c
     12 index f1a18bd..6117698 100644
     13 --- a/fsck_hfs.tproj/fsck_hfs.c
     14 +++ b/fsck_hfs.tproj/fsck_hfs.c
     15 @@ -104,7 +104,7 @@ main(argc, argv)
     16  	else
     17  		progname = *argv;
     18  
     19 -	while ((ch = getopt(argc, argv, "c:D:dfglm:npqruy")) != EOF) {
     20 +	while ((ch = getopt(argc, argv, "c:D:dfglm:napqruy")) != EOF) {
     21  		switch (ch) {
     22  		case 'c':
     23  			/* Cache size to use in fsck_hfs */
     24 @@ -169,6 +169,7 @@ main(argc, argv)
     25  			yflag = 0;
     26  			break;
     27  
     28 +		case 'a':
     29  		case 'p':
     30  			preen++;
     31  			break;
     32 @@ -572,7 +573,7 @@ usage()
     33  	(void) fprintf(stderr, "  l = live fsck (lock down and test-only)\n");
     34  	(void) fprintf(stderr, "  m arg = octal mode used when creating lost+found directory \n");
     35  	(void) fprintf(stderr, "  n = assume a no response \n");
     36 -	(void) fprintf(stderr, "  p = just fix normal inconsistencies \n");
     37 +	(void) fprintf(stderr, "  p, a = just fix normal inconsistencies \n");
     38  	(void) fprintf(stderr, "  q = quick check returns clean, dirty, or failure \n");
     39  	(void) fprintf(stderr, "  r = rebuild catalog btree \n");
     40  	(void) fprintf(stderr, "  u = usage \n");