1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00

cleanup: comment in the code for renaming historical LVs

This commit is contained in:
Peter Rajnoha 2016-03-04 11:46:29 +01:00
parent 27245d97e5
commit fa06c2263b

View File

@ -4225,7 +4225,10 @@ int lv_rename_update(struct cmd_context *cmd, struct logical_volume *lv,
return_0;
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;
if (update_mda &&
(!vg_write(vg) || !vg_commit(vg)))