You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

38 lines
1.4 KiB

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