hfstools/hfstools-332.14-fsck_checkfs.patch

37 lines
1.5 KiB
Diff

diff -Nru diskdev_cmds-332.14.orig//fsck_hfs.tproj/fsck_hfs.c diskdev_cmds-332.14/fsck_hfs.tproj/fsck_hfs.c
--- diskdev_cmds-332.14.orig//fsck_hfs.tproj/fsck_hfs.c 2011-04-07 20:08:14.141449714 +0200
+++ diskdev_cmds-332.14/fsck_hfs.tproj/fsck_hfs.c 2011-04-07 20:14:46.938645360 +0200
@@ -109,7 +109,7 @@
else
progname = *argv;
- while ((ch = getopt(argc, argv, "dfglm:npqruy")) != EOF) {
+ while ((ch = getopt(argc, argv, "dfglm:napqruy")) != EOF) {
switch (ch) {
case 'd':
debug++;
@@ -146,6 +146,7 @@
break;
case 'p':
+ case 'a':
preen++;
break;
@@ -529,13 +530,14 @@
static void
usage()
{
- (void) fprintf(stderr, "usage: %s [-dfl m [mode] npqruy] special-device\n", progname);
+ (void) fprintf(stderr, "usage: %s [-dfl m [mode] npaqruy] special-device\n", progname);
(void) fprintf(stderr, " d = output debugging info\n");
(void) fprintf(stderr, " f = force fsck even if clean (preen only) \n");
(void) fprintf(stderr, " l = live fsck (lock down and test-only)\n");
(void) fprintf(stderr, " m arg = octal mode used when creating lost+found directory \n");
(void) fprintf(stderr, " n = assume a no response \n");
(void) fprintf(stderr, " p = just fix normal inconsistencies \n");
+ (void) fprintf(stderr, " a = like -p for compatibility \n");
(void) fprintf(stderr, " q = quick check returns clean, dirty, or failure \n");
(void) fprintf(stderr, " r = rebuild catalog btree \n");
(void) fprintf(stderr, " u = usage \n");