From fa06c2263b24561c25c04aefd93204f7cfc39543 Mon Sep 17 00:00:00 2001 From: Peter Rajnoha Date: Fri, 4 Mar 2016 11:46:29 +0100 Subject: [PATCH] cleanup: comment in the code for renaming historical LVs --- lib/metadata/lv_manip.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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)))