fstrim: Indicate failure on error
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Sat, 9 Nov 2013 23:02:43 +0000 (00:02 +0100)
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Sat, 9 Nov 2013 23:02:43 +0000 (00:02 +0100)
+14b

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
util-linux/fstrim.c

index 00140b3..84a6410 100644 (file)
@@ -103,6 +103,7 @@ int fstrim_main(int argc UNUSED_PARAM, char **argv)
 
                if (opts & OPT_v)
                        printf("%s: %llu bytes were trimmed\n", bd, range.len);
+               return EXIT_SUCCESS;
        }
-       return EXIT_SUCCESS;
+       return EXIT_FAILURE;
 }