fstrim: Indicate failure on error
+14b Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
This commit is contained in:
parent
140f4e3511
commit
b1489f97e0
@ -103,6 +103,7 @@ int fstrim_main(int argc UNUSED_PARAM, char **argv)
|
|||||||
|
|
||||||
if (opts & OPT_v)
|
if (opts & OPT_v)
|
||||||
printf("%s: %llu bytes were trimmed\n", bd, range.len);
|
printf("%s: %llu bytes were trimmed\n", bd, range.len);
|
||||||
|
return EXIT_SUCCESS;
|
||||||
}
|
}
|
||||||
return EXIT_SUCCESS;
|
return EXIT_FAILURE;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user