diff options
author | Zdenek Kabelac <zkabelac@redhat.com> | 2019-08-20 12:23:08 +0200 |
---|---|---|
committer | Zdenek Kabelac <zkabelac@redhat.com> | 2019-08-20 12:44:39 +0200 |
commit | 0bdd6d6240251996694a8581432f726e5442c4a2 (patch) | |
tree | b4954a859b48fcc172f49b7c6a2dbb9ddea5e6e0 /tools/pvmove_poll.c | |
parent | 0451225c1997273ffaa36c3eb595eae7737b7dda (diff) | |
download | lvm2-0bdd6d6240251996694a8581432f726e5442c4a2.tar.gz |
pvmove: add missing synchronization
Between 'resume' and 'remove' we need to wait for udev to synchronize,
otherwise udev may 'skip' resume event processing if the udev node
is already gone.
Diffstat (limited to 'tools/pvmove_poll.c')
-rw-r--r-- | tools/pvmove_poll.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/pvmove_poll.c b/tools/pvmove_poll.c index e50747cf4..d379596f2 100644 --- a/tools/pvmove_poll.c +++ b/tools/pvmove_poll.c @@ -97,6 +97,8 @@ int pvmove_finish(struct cmd_context *cmd, struct volume_group *vg, if (!lv_update_and_reload(lv_mirr)) return_0; + sync_local_dev_names(cmd); + /* Deactivate mirror LV */ if (!deactivate_lv(cmd, lv_mirr)) { log_error("ABORTING: Unable to deactivate temporary logical " |