Created
August 16, 2014 01:33
-
-
Save uobikiemukot/bff1358341312ca46da3 to your computer and use it in GitHub Desktop.
archlinux/f2fs-tools patch: skip some options specified in /usr/lib/initcpio/init_functions:200
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- fsck/main.c.orig 2014-08-16 09:58:09.660037897 +0900 | |
+++ fsck/main.c 2014-08-16 09:58:13.410033740 +0900 | |
@@ -42,7 +42,8 @@ | |
char *prog = basename(argv[0]); | |
if (!strcmp("fsck.f2fs", prog)) { | |
- const char *option_string = "d:t"; | |
+ //const char *option_string = "d:t"; | |
+ const char *option_string = "d:tTaC:f"; | |
config.func = FSCK; | |
while ((option = getopt(argc, argv, option_string)) != EOF) { | |
@@ -54,6 +55,16 @@ | |
case 't': | |
config.dbg_lv = -1; | |
break; | |
+ case 'T': | |
+ case 'a': | |
+ case 'C': | |
+ case 'f': | |
+ /* dummy: | |
+ in /usr/lib/initcpio/init_functions:200 | |
+ fsck -Ta -C"$FSCK_FD" "$1" -- ${forcefsck+-f} | |
+ but fsck.f2fs doesn't recognize these options (-T -a -C -f) | |
+ so just skip these options and never exit */ | |
+ break; | |
default: | |
MSG(0, "\tError: Unknown option %c\n",option); | |
fsck_usage(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment