mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-02 01:18:26 +03:00
snapshot: use lv_update_and_reload
This commit is contained in:
parent
29970b0c17
commit
a84d0d0c7b
@ -1,5 +1,6 @@
|
|||||||
Version 2.02.112 -
|
Version 2.02.112 -
|
||||||
=====================================
|
=====================================
|
||||||
|
Use lv_update_and_reload() for snapshot reload.
|
||||||
Don't print message in adjusted_mirror_region_size() in activation.
|
Don't print message in adjusted_mirror_region_size() in activation.
|
||||||
Improve lv_update_and_reload() to find out proper lock holding LV.
|
Improve lv_update_and_reload() to find out proper lock holding LV.
|
||||||
Improve search of LV in lv_ondisk().
|
Improve search of LV in lv_ondisk().
|
||||||
|
@ -7124,22 +7124,8 @@ static struct logical_volume *_lv_create_an_lv(struct volume_group *vg,
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* store vg on disk(s) */
|
/* store vg on disk(s) */
|
||||||
if (!vg_write(vg))
|
if (!lv_update_and_reload(org))
|
||||||
return_NULL;
|
return_0;
|
||||||
|
|
||||||
if (!suspend_lv(cmd, org)) {
|
|
||||||
log_error("Failed to suspend origin %s", org->name);
|
|
||||||
vg_revert(vg);
|
|
||||||
return NULL;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!vg_commit(vg))
|
|
||||||
return_NULL;
|
|
||||||
|
|
||||||
if (!resume_lv(cmd, org)) {
|
|
||||||
log_error("Problem reactivating origin %s", org->name);
|
|
||||||
return NULL;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
/* FIXME out of sequence */
|
/* FIXME out of sequence */
|
||||||
backup(vg);
|
backup(vg);
|
||||||
|
Loading…
Reference in New Issue
Block a user