diff --git a/lib/metadata/lv_manip.c b/lib/metadata/lv_manip.c index 013b9e43f..d846e2225 100644 --- a/lib/metadata/lv_manip.c +++ b/lib/metadata/lv_manip.c @@ -1466,7 +1466,7 @@ int lv_extend(struct logical_volume *lv, * Returns 0 on failure, 1 on success. */ int lv_rename(struct cmd_context *cmd, struct logical_volume *lv, - char *newname) + const char *newname) { struct volume_group *vg = lv->vg; diff --git a/lib/metadata/metadata-exported.h b/lib/metadata/metadata-exported.h index 3bc817033..5cc7eadca 100644 --- a/lib/metadata/metadata-exported.h +++ b/lib/metadata/metadata-exported.h @@ -357,7 +357,7 @@ int lv_extend(struct logical_volume *lv, int lv_remove(struct logical_volume *lv); int lv_rename(struct cmd_context *cmd, struct logical_volume *lv, - char *newname); + const char *newname); /* Find a PV within a given VG */ struct pv_list *find_pv_in_vg(struct volume_group *vg, const char *pv_name);