master - cleanup: comment in the code for renaming historical LVs
Gitweb: http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=fa06c2263b24561c25c04aefd93204f7cfc39543 Commit: fa06c2263b24561c25c04aefd93204f7cfc39543 Parent: 27245d97e57bb42b83aa240979aa6febf9096264 Author: Peter Rajnoha <[email protected]> AuthorDate: Fri Mar 4 11:46:29 2016 +0100 Committer: Peter Rajnoha <[email protected]> CommitterDate: Fri Mar 4 11:46:29 2016 +0100
cleanup: comment in the code for renaming historical LVs
--- lib/metadata/lv_manip.c | 5 ++++- 1 files changed, 4 insertions(+), 1 deletions(-)
lib/metadata/lv_manip.c +4 -1
@@ -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)))