]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
ceph-disk: encapsulate partprobe / partx calls
authorLoic Dachary <loic-201408@dachary.org>
Fri, 10 Oct 2014 08:23:34 +0000 (10:23 +0200)
committerLoic Dachary <ldachary@redhat.com>
Wed, 26 Nov 2014 10:22:34 +0000 (11:22 +0100)
commitf64d742e4f1ac64914975284817fd734c0f4b7f3
tree4f2562c923c8ece8471ed2d09bae67f1d1ca9fce
parent1be9476afb9f715502a14749dd44e08371535b54
ceph-disk: encapsulate partprobe / partx calls

Add the update_partition function to reduce code duplication.
The action is made an argument although it always is -a because it will
be -d when deleting a partition.

Use the update_partition function in prepare_journal_dev

Signed-off-by: Loic Dachary <loic-201408@dachary.org>
(cherry picked from commit 922a15ea6865ef915bbdec2597433da6792c1cb2)

Conflicts:
src/ceph-disk
src/ceph-disk