]> 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>
Tue, 25 Nov 2014 14:06:35 +0000 (15:06 +0100)
commit5c9cd3c2a292ae540fd0a487defaf4d712e41e62
tree063c6a2ac4208728f8df76d99479e4a8c25d7214
parent37ffccbd57e7e441e0eb1499e5c173aa9c375d35
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)
src/ceph-disk