summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKen Sumrall <ksumrall@android.com>2011-03-22 20:37:38 -0700
committerAndroid Git Automerger <android-git-automerger@android.com>2011-03-22 20:37:38 -0700
commit8c00dae657ce7941121ec218d07adeab9ee3d8a1 (patch)
treee7867fda47809765a55d8a8f4ba153048a551a34
parente2e962fdf6fa3d29986b92438e2f9c2b8e9d2284 (diff)
parent427c3a2177eb4d34c88406bb86107548737168cc (diff)
downloadextras-8c00dae657ce7941121ec218d07adeab9ee3d8a1.tar.gz
am 427c3a21: Make a failure of the BLKDISCARD ioctl non-fatal.
* commit '427c3a2177eb4d34c88406bb86107548737168cc': Make a failure of the BLKDISCARD ioctl non-fatal.
-rw-r--r--ext4_utils/wipe.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext4_utils/wipe.c b/ext4_utils/wipe.c
index c7329cf3..3bd33e5b 100644
--- a/ext4_utils/wipe.c
+++ b/ext4_utils/wipe.c
@@ -43,7 +43,7 @@ int wipe_block_device(int fd, s64 len)
range[1] = len;
ret = ioctl(fd, BLKDISCARD, &range);
if (ret < 0) {
- error("Discard failed\n");
+ warn("Discard failed\n");
return 1;
} else {
warn("Wipe via secure discard failed, used discard instead\n");