Call ioctl before each write on retry
If the update is a retry, ioctl(BLKDISCARD) the destination blocks before
writing to these blocks.
Bug: 28990135
Change-Id: I1e703808e68ebb1292cd66afd76be8fd6946ee59
diff --git a/edify/expr.h b/edify/expr.h
index 5c06de8..8863479 100644
--- a/edify/expr.h
+++ b/edify/expr.h
@@ -49,6 +49,8 @@
// in addition to the error code.
CauseCode cause_code = kNoCause;
+ bool is_retry = false;
+
} State;
#define VAL_STRING 1 // data will be NULL-terminated; size doesn't count null