]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
ceph-disk: guard partprobe with udevadm settle
authorLoic Dachary <ldachary@redhat.com>
Sun, 20 Sep 2015 12:30:52 +0000 (14:30 +0200)
committerLoic Dachary <ldachary@redhat.com>
Tue, 22 Sep 2015 06:46:56 +0000 (08:46 +0200)
commite2c553ee95008cce1da7d6c695f6fb30b2584386
tree29043502d72af4c32782e394287efff38bcf33ea
parentad2d46ce85c865a5d0af5f43ac9af5a843783376
ceph-disk: guard partprobe with udevadm settle

Call udevadm settle before and after partprobe.

A side effect of partprobe is to remove partitions and add them again.
The first udevadm settle waits for ongoing udev events to complete, just
in case one of them rely on an existing partition on dev.

The second udevadm settle guarantees to the caller that all udev events
related to the partition table change have been processed, i.e. the
95-ceph-osd.rules actions and mode changes, group changes etc. are
complete.

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