From 55b72527fb21899cf100b1db145e410230459142 Mon Sep 17 00:00:00 2001 From: Damien Thenot Date: Wed, 9 Oct 2024 16:20:46 +0200 Subject: [PATCH] linstor: Fix to add sync to DD Signed-off-by: Damien Thenot --- drivers/util.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/util.py b/drivers/util.py index fe8e13d1a..673cd6e0c 100755 --- a/drivers/util.py +++ b/drivers/util.py @@ -575,7 +575,7 @@ def zeroOut(path, fromByte, bytes): bytesBefore = bytes bytes -= bytesBefore cmd = [CMD_DD, "if=/dev/zero", "of=%s" % path, "bs=1", \ - "seek=%s" % fromByte, "count=%s" % bytesBefore] + "seek=%s" % fromByte, "count=%s" % bytesBefore, "conv=fsync"] try: text = pread2(cmd) except CommandException: