[lvm-devel] [PATCH 20/24] Const fixing

Milan Broz mbroz at redhat.com
Sun Jan 30 20:44:58 UTC 2011


On 01/30/2011 01:57 PM, Zdenek Kabelac wrote:
> Fixing some of the remaining const warnings - major change:
> 
> int vg_extend(struct volume_group *vg, int pv_count, const char *const *pv_names,
> 
> Change is needed - as lvm2api seems to expect const behaviour here.
> So vg_extend() is doing local strdup for unescaping.
> 
> skip_dev_dir return const char* from const char* vg_name.

Only C language allows us to have properly defined const variables :-)

<add mornfall's signature here>

If it helps something, ACK.

Milan




More information about the lvm-devel mailing list