]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
ceph-disk: move update_partition from main_prepare to prepare_dev
authorLoic Dachary <ldachary@redhat.com>
Sun, 20 Sep 2015 12:34:47 +0000 (14:34 +0200)
committerLoic Dachary <ldachary@redhat.com>
Tue, 22 Sep 2015 06:46:56 +0000 (08:46 +0200)
commit0dd2364984c498c614affc4f3af0fbe40b9f632f
tree16776a4c01a09323776dbbf1568774086ae4ef12
parente2c553ee95008cce1da7d6c695f6fb30b2584386
ceph-disk: move update_partition from main_prepare to prepare_dev

The update_partition call in main_prepare happens immediately after
prepare_dev but only if the data argument is a block device. There is no
reason for this separation: it is more sensible to call it from within
prepare_dev.

There is an additional test in prepare_dev that verifies partprobe won't
be called on a partition because it would not make sense.

Signed-off-by: Loic Dachary <ldachary@redhat.com>
src/ceph-disk