LVM2/lib/report columns.h properties.c propert ...
CVSROOT: /cvs/lvm2
Module name: LVM2
Changes by: mornfall at sourceware.org 2010-11-17 19:15:11
Modified files:
lib/report : columns.h properties.c properties.h
Log message:
Add generic infrastructure to internal library to 'set' a property. Similar to 'get' property internal functions.
Add specific 'set' function for vg_mda_copies.
Signed-off-by Dave Wysochanski <[email protected]>
Reviewed-by Petr Rockai <[email protected]>
Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/lib/report/columns.h.diff?cvsroot=lvm2&r1=1.45&r2=1.46
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/lib/report/properties.c.diff?cvsroot=lvm2&r1=1.22&r2=1.23
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/lib/report/properties.h.diff?cvsroot=lvm2&r1=1.5&r2=1.6
lib/report/columns.h +1 -1
@@ -121,7 +121,7 @@ FIELD(VGS, vg, NUM, "#VMdaUse", cmd, 8, vgmdasused, vg_mda_used_count, "Number of metadata areas in use on this VG.", 0) FIELD(VGS, vg, NUM, "VMdaFree", cmd, 9, vgmdafree, vg_mda_free, "Free metadata area space for this VG in current units.", 0) FIELD(VGS, vg, NUM, "VMdaSize", cmd, 9, vgmdasize, vg_mda_size, "Size of smallest metadata area for this VG in current units.", 0) -FIELD(VGS, vg, NUM, "#VMdaCps", cmd, 8, vgmdacopies, vg_mda_copies, "Target number of in use metadata areas in the VG.", 0) +FIELD(VGS, vg, NUM, "#VMdaCps", cmd, 8, vgmdacopies, vg_mda_copies, "Target number of in use metadata areas in the VG.", 1) FIELD(SEGS, seg, STR, "Type", list, 4, segtype, segtype, "Type of LV segment.", 0)FIELD (SEGS , seg,NUM ,"#Str" , area_count,4 , uint32, stripes,"Number of stripes or mirror legs." ,0 )
lib/report/properties.c +70 -1
92 lines not on this page · raw message
lib/report/properties.h +6 -0
@@ -39,5 +39,11 @@ struct lvm_property_type *prop);int pv_get_property (const struct physical_volume *pv,struct lvm_property_type *prop); +int lv_set_property (struct logical_volume *lv, +struct lvm_property_type *prop); +int vg_set_property (struct volume_group *vg, +struct lvm_property_type *prop); +int pv_set_property (struct physical_volume *pv, +struct lvm_property_type *prop);#endif