[lvm-devel] master - cleanup: comment in the code for renaming historical LVs

Peter Rajnoha prajnoha at fedoraproject.org
Fri Mar 4 10:46:37 UTC 2016


Gitweb:        http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=fa06c2263b24561c25c04aefd93204f7cfc39543
Commit:        fa06c2263b24561c25c04aefd93204f7cfc39543
Parent:        27245d97e57bb42b83aa240979aa6febf9096264
Author:        Peter Rajnoha <prajnoha at redhat.com>
AuthorDate:    Fri Mar 4 11:46:29 2016 +0100
Committer:     Peter Rajnoha <prajnoha at redhat.com>
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(-)

diff --git a/lib/metadata/lv_manip.c b/lib/metadata/lv_manip.c
index 9b51b6d..91a010c 100644
--- a/lib/metadata/lv_manip.c
+++ b/lib/metadata/lv_manip.c
@@ -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)))




More information about the lvm-devel mailing list