]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
Fix "disk zap" sgdisk invocation 4561/head
authorOwen Synge <osynge@suse.com>
Tue, 17 Mar 2015 14:41:33 +0000 (15:41 +0100)
committerLoic Dachary <ldachary@redhat.com>
Wed, 6 May 2015 09:00:10 +0000 (11:00 +0200)
commit6a04b55df76faad9b1b0770fbe6038b3b8c7d645
treeee493684015f0379035e4454811c5f5d786fb029
parentbc51476181429d7d95d2bba5f774d8b60c47fb1f
Fix "disk zap" sgdisk invocation

Fixes #11143

If the metadata on the disk is truly invalid, sgdisk would fail to zero
it in one go, because --mbrtogpt apparently tried to operate on the
metadata it read before executing --zap-all.

Splitting this up into two separate invocations to first zap everything
and then clear it properly fixes this issue.

Based on patch by Lars Marowsky-Bree <lmb@suse.com> in ceph-deploy.
Created by Vincent Untz <vuntz@suse.com>

Signed-off-by: Owen Synge <osynge@suse.com>
Signed-off-by: Thorsten Behrens <tbehrens@suse.com>
(cherry picked from commit fdd7f8d83afa25c4e09aaedd90ab93f3b64a677b)
src/ceph-disk