]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
ceph-volume: use fsync for dd command 31479/head
authorRishabh Dave <ridave@redhat.com>
Fri, 8 Nov 2019 07:04:27 +0000 (12:34 +0530)
committerRishabh Dave <ridave@redhat.com>
Fri, 8 Nov 2019 07:04:27 +0000 (12:34 +0530)
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 <ridave@redhat.com>
src/ceph-volume/ceph_volume/devices/lvm/zap.py

index bca32ac8833961253ebdc2fa7753c8bbe7cf04d1..6e60614088d0f19d3731c75cd38a4033baa08825 100644 (file)
@@ -66,6 +66,7 @@ def zap_data(path):
         'of={path}'.format(path=path),
         'bs=1M',
         'count=10',
+        'conv=fsync'
     ])