]> git-server-git.apps.pok.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 09:57:10 +0000 (10:57 +0100)
commit5a5f427bc09076ef3fb13a710dede1b47bb232e0
tree4440093ef240447f57300dc054166f7f5cdef6c4
parent4a148df544978383c1ed7cd8b90f590adb563f3d
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