1
0
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:
Zdenek Kabelac 2014-09-21 01:10:53 +02:00
parent 29970b0c17
commit a84d0d0c7b
2 changed files with 3 additions and 16 deletions

View File

@ -1,5 +1,6 @@
Version 2.02.112 -
=====================================
Use lv_update_and_reload() for snapshot reload.
Don't print message in adjusted_mirror_region_size() in activation.
Improve lv_update_and_reload() to find out proper lock holding LV.
Improve search of LV in lv_ondisk().

View File

@ -7124,22 +7124,8 @@ static struct logical_volume *_lv_create_an_lv(struct volume_group *vg,
}
/* store vg on disk(s) */
if (!vg_write(vg))
return_NULL;
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;
}
if (!lv_update_and_reload(org))
return_0;
}
/* FIXME out of sequence */
backup(vg);