mirror of
git://sourceware.org/git/lvm2.git
synced 2025-03-10 16:58:47 +03:00
Add synchornization point in mirror log init.
Put extra sync point when mirror log is deactivated and before it's activated for the second time.
This commit is contained in:
parent
ab852ffe66
commit
42b5c54092
@ -1,5 +1,6 @@
|
||||
Version 2.02.90 -
|
||||
===================================
|
||||
Add synchronization point in mirror log initialization.
|
||||
Disable partial activation for thin LVs and LVs with all missing segments.
|
||||
Do not print warning for pv_min_size set in range between 512KB and 2MB.
|
||||
Clean up systemd unit ordering and requirements.
|
||||
|
@ -325,6 +325,8 @@ static int _init_mirror_log(struct cmd_context *cmd,
|
||||
|
||||
backup(log_lv->vg);
|
||||
|
||||
// FIXME: Wait here explicitly, so deactivation of log_lv is finished
|
||||
sync_local_dev_names(cmd);
|
||||
if (!activate_lv(cmd, log_lv)) {
|
||||
log_error("Aborting. Failed to activate mirror log.");
|
||||
goto revert_new_lv;
|
||||
@ -437,7 +439,8 @@ static int _delete_lv(struct logical_volume *mirror_lv, struct logical_volume *l
|
||||
if (!_activate_lv_like_model(lv, lv))
|
||||
return_0;
|
||||
|
||||
sync_local_dev_names(lv->vg->cmd);
|
||||
// FIXME: Wait here should not be need
|
||||
sync_local_dev_names(cmd);
|
||||
if (!deactivate_lv(cmd, lv))
|
||||
return_0;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user