fstrim: Indicate failure on error

+14b

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
1_22_stable
Bernhard Reutner-Fischer 2013-11-10 00:02:43 +01:00
parent 140f4e3511
commit b1489f97e0
1 changed files with 2 additions and 1 deletions

View 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;
}