summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Rajnoha <prajnoha@redhat.com>2016-03-04 11:46:29 +0100
committerPeter Rajnoha <prajnoha@redhat.com>2016-03-04 11:46:29 +0100
commitfa06c2263b24561c25c04aefd93204f7cfc39543 (patch)
tree4d8effea18bdfdbb68dbaa870dcb6f1e27a7c091
parent27245d97e57bb42b83aa240979aa6febf9096264 (diff)
downloadlvm2-fa06c2263b24561c25c04aefd93204f7cfc39543.tar.gz
cleanup: comment in the code for renaming historical LVs
-rw-r--r--lib/metadata/lv_manip.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/metadata/lv_manip.c b/lib/metadata/lv_manip.c
index 9b51b6d26..91a010c8c 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)))