]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
ceph-disk: run partprobe after zap 3005/head
authorLoic Dachary <loic-201408@dachary.org>
Thu, 9 Oct 2014 16:52:17 +0000 (18:52 +0200)
committerLoic Dachary <ldachary@redhat.com>
Tue, 25 Nov 2014 14:06:35 +0000 (15:06 +0100)
commitcb1d68113477cf9c2028a65372d2d4a3e6a8bdc1
treea81ecdcfcddc07988dd3fc202ea61b0dd8d888e5
parentd9c04b880d8bf867aa454132117119be5bd550ad
ceph-disk: run partprobe after zap

Not running partprobe after zapping a device can lead to the following:

* ceph-disk prepare /dev/loop2
* links are created in /dev/disk/by-partuuid
* ceph-disk zap /dev/loop2
* links are not removed from /dev/disk/by-partuuid
* ceph-disk prepare /dev/loop2
* some links are not created in /dev/disk/by-partuuid

This is assuming there is a bug in the way udev events are handled by
the operating system.

http://tracker.ceph.com/issues/9665 Fixes: #9665

Signed-off-by: Loic Dachary <loic-201408@dachary.org>
(cherry picked from commit fed3b06c47a5ef22cb3514c7647544120086d1e7)
src/ceph-disk