aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2013-11-10 00:02:43 +0100
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2013-11-10 00:02:43 +0100
commitb1489f97e0670fed7d450bae86a3aae38bc9156b (patch)
tree4fd2e63c5298813161f54b7e0c4658cd10777dd9
parent140f4e351191d8633fd5bd6dcf38cdcccc1f07cb (diff)
downloadbusybox-w32-b1489f97e0670fed7d450bae86a3aae38bc9156b.tar.gz
busybox-w32-b1489f97e0670fed7d450bae86a3aae38bc9156b.tar.bz2
busybox-w32-b1489f97e0670fed7d450bae86a3aae38bc9156b.zip
fstrim: Indicate failure on error
+14b Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
-rw-r--r--util-linux/fstrim.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/util-linux/fstrim.c b/util-linux/fstrim.c
index 00140b340..84a641022 100644
--- a/util-linux/fstrim.c
+++ b/util-linux/fstrim.c
@@ -103,6 +103,7 @@ int fstrim_main(int argc UNUSED_PARAM, char **argv)
103 103
104 if (opts & OPT_v) 104 if (opts & OPT_v)
105 printf("%s: %llu bytes were trimmed\n", bd, range.len); 105 printf("%s: %llu bytes were trimmed\n", bd, range.len);
106 return EXIT_SUCCESS;
106 } 107 }
107 return EXIT_SUCCESS; 108 return EXIT_FAILURE;
108} 109}