mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-03 05:18:29 +03:00
cleanup: comment in the code for renaming historical LVs
This commit is contained in:
parent
27245d97e5
commit
fa06c2263b
@ -4225,7 +4225,10 @@ int lv_rename_update(struct cmd_context *cmd, struct logical_volume *lv,
|
|||||||
return_0;
|
return_0;
|
||||||
|
|
||||||
if (old_lv_is_historical) {
|
if (old_lv_is_historical) {
|
||||||
/* historical LVs don't have sub LVs */
|
/*
|
||||||
|
* Historical LVs have neither sub LVs nor any
|
||||||
|
* devices to reload, so just update metadata.
|
||||||
|
*/
|
||||||
lv->this_glv->historical->name = lv->name = new_name;
|
lv->this_glv->historical->name = lv->name = new_name;
|
||||||
if (update_mda &&
|
if (update_mda &&
|
||||||
(!vg_write(vg) || !vg_commit(vg)))
|
(!vg_write(vg) || !vg_commit(vg)))
|
||||||
|
Loading…
Reference in New Issue
Block a user