From: Rishabh Dave Date: Fri, 8 Nov 2019 07:04:27 +0000 (+0530) Subject: ceph-volume: use fsync for dd command X-Git-Tag: v13.2.9~117^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F31552%2Fhead;p=ceph.git ceph-volume: use fsync for dd command fsync makes sure that data and metadata is actually written to device being zapped before finishing. Fixes: https://tracker.ceph.com/issues/39156 Signed-off-by: Rishabh Dave (cherry picked from commit 060f54960c3d2d800b28525ba8774a60578f67a8) --- diff --git a/src/ceph-volume/ceph_volume/devices/lvm/zap.py b/src/ceph-volume/ceph_volume/devices/lvm/zap.py index bca32ac88339..6e60614088d0 100644 --- a/src/ceph-volume/ceph_volume/devices/lvm/zap.py +++ b/src/ceph-volume/ceph_volume/devices/lvm/zap.py @@ -66,6 +66,7 @@ def zap_data(path): 'of={path}'.format(path=path), 'bs=1M', 'count=10', + 'conv=fsync' ])