Bug#757538: Patch to add do-othing -a

2014-09-04 Thread Vincent Cheng
On Wed, Sep 3, 2014 at 6:27 PM, Peter Chubb peter.ch...@nicta.com.au wrote:
  Tags: PATCH

  The attafhed patch adds a do-nothing -a option.  As fsck.f2fs always
  tries automatically to fix problems.

It looks like this has recently been fixed upstream [1], but thanks
anyways (but in the future, please forward patches directly upstream).

Regards,
Vincent

[1] 
http://git.kernel.org/cgit/linux/kernel/git/jaegeuk/f2fs-tools.git/commit/?id=7eb6c5a03b78d8673030e89ce15345d69d5e5777


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#757538: Patch to add do-othing -a

2014-09-03 Thread Peter Chubb
 Tags: PATCH

 The attafhed patch adds a do-nothing -a option.  As fsck.f2fs always
 tries automatically to fix problems.

---
 fsck/main.c |5 -
 1 file changed, 4 insertions(+), 1 deletion(-)

Index: f2fs-tools-1.3.0/fsck/main.c
===
--- f2fs-tools-1.3.0.orig/fsck/main.c   2014-09-04 11:16:04.281639599 +1000
+++ f2fs-tools-1.3.0/fsck/main.c2014-09-04 11:17:11.306108542 +1000
@@ -20,6 +20,7 @@ void fsck_usage()
MSG(0, \nUsage: fsck.f2fs [options] device\n);
MSG(0, [options]:\n);
MSG(0,   -d debug level [default:0]\n);
+MSG(0,   -a [no-op for compatibility with other fsck]\n);
exit(1);
 }
 
@@ -42,11 +43,13 @@ void f2fs_parse_options(int argc, char *
char *prog = basename(argv[0]);
 
if (!strcmp(fsck.f2fs, prog)) {
-   const char *option_string = d:t;
+   const char *option_string = d:ta;
 
config.func = FSCK;
while ((option = getopt(argc, argv, option_string)) != EOF) {
switch (option) {
+case 'a':
+break;
case 'd':
config.dbg_lv = atoi(optarg);
MSG(0, Info: Debug level = %d\n, 
config.dbg_lv);

-- 
Dr Peter Chubb  peter.chubb AT nicta.com.au
http://www.ssrg.nicta.com.au  Software Systems Research Group/NICTA