[v2,4/5] external/gard: Use blocklevel_smart_erase()

Message ID 20170419041143.12042-5-cyril.bur@au1.ibm.com
State New
Headers show

Commit Message

Cyril Bur April 19, 2017, 4:11 a.m.
Signed-off-by: Cyril Bur <cyril.bur@au1.ibm.com>
---
 external/gard/gard.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch

diff --git a/external/gard/gard.c b/external/gard/gard.c
index 4b26a3b8..32a0003f 100644
--- a/external/gard/gard.c
+++ b/external/gard/gard.c
@@ -438,7 +438,7 @@  static int reset_partition(struct gard_ctx *ctx)
 	struct gard_record gard;
 	memset(&gard, 0xFF, sizeof(gard));
 
-	rc = blocklevel_erase(ctx->bl, ctx->gard_data_pos, ctx->gard_data_len);
+	rc = blocklevel_smart_erase(ctx->bl, ctx->gard_data_pos, ctx->gard_data_len);
 	if (rc) {
 		fprintf(stderr, "Couldn't erase the gard partition. Bailing out\n");
 		return rc;