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 00140b3404b57dfd8f85262816ad2b027688fe5f..84a6410224d85c8859b7dbec81bb0616d3560967 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;
 }