mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
Make lv_rename's interface "const correct".
* lib/metadata/lv_manip.c (lv_rename): Make char* param "const". * lib/metadata/metadata-exported.h: Update prototype, too.
This commit is contained in:
parent
27c7135097
commit
b7449ebc37
@ -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;
|
||||
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user