1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-01-03 05:18:29 +03:00

Use const char * for name and old_name in vg

Switch to use const char pointers to avoid changes of these structure
members and having better control over, were these members could
be modified.
This commit is contained in:
Zdenek Kabelac 2010-12-20 13:40:46 +00:00
parent 9e06310aab
commit 9b30dfb967

View File

@ -43,8 +43,8 @@ struct volume_group {
uint64_t status; uint64_t status;
struct id id; struct id id;
char *name; const char *name;
char *old_name; /* Set during vgrename and vgcfgrestore */ const char *old_name; /* Set during vgrename and vgcfgrestore */
char *system_id; char *system_id;
uint32_t extent_size; uint32_t extent_size;