diff options
Diffstat (limited to 'updater/blockimg.cpp')
-rw-r--r-- | updater/blockimg.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/updater/blockimg.cpp b/updater/blockimg.cpp index e93196b27..b44e1a219 100644 --- a/updater/blockimg.cpp +++ b/updater/blockimg.cpp @@ -1499,10 +1499,12 @@ static int PerformCommandErase(CommandParameters& params) { // length in bytes blocks[1] = (range.second - range.first) * static_cast<uint64_t>(BLOCKSIZE); +#ifndef SUPPRESS_EMMC_WIPE if (ioctl(params.fd, BLKDISCARD, &blocks) == -1) { PLOG(ERROR) << "BLKDISCARD ioctl failed"; return -1; } +#endif } } |