diff options
Diffstat (limited to 'updater/blockimg.c')
-rw-r--r-- | updater/blockimg.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/updater/blockimg.c b/updater/blockimg.c index 8b9519d..a93bfcb 100644 --- a/updater/blockimg.c +++ b/updater/blockimg.c @@ -1521,10 +1521,12 @@ static int PerformCommandErase(CommandParameters* params) { // length in bytes blocks[1] = (tgt->pos[i * 2 + 1] - tgt->pos[i * 2]) * (uint64_t) BLOCKSIZE; +#ifndef SUPPRESS_EMMC_WIPE if (ioctl(params->fd, BLKDISCARD, &blocks) == -1) { fprintf(stderr, "BLKDISCARD ioctl failed: %s\n", strerror(errno)); goto pceout; } +#endif } } |