[lvm-devel] LVM2/lib/metadata vg.h
zkabelac at sourceware.org
zkabelac at sourceware.org
Mon Dec 20 13:40:47 UTC 2010
CVSROOT: /cvs/lvm2
Module name: LVM2
Changes by: zkabelac at sourceware.org 2010-12-20 13:40:46
Modified files:
lib/metadata : vg.h
Log message:
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.
Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/lib/metadata/vg.h.diff?cvsroot=lvm2&r1=1.8&r2=1.9
--- LVM2/lib/metadata/vg.h 2010/11/09 12:34:43 1.8
+++ LVM2/lib/metadata/vg.h 2010/12/20 13:40:46 1.9
@@ -43,8 +43,8 @@
uint64_t status;
struct id id;
- char *name;
- char *old_name; /* Set during vgrename and vgcfgrestore */
+ const char *name;
+ const char *old_name; /* Set during vgrename and vgcfgrestore */
char *system_id;
uint32_t extent_size;
More information about the lvm-devel
mailing list