Commits
Konstantin Khlebnikov authored and Pavel Emelyanov committed 74e373eeb5e
CPT: dump and restore global snmp statistics Per device exists for ipv6 only and is probably not used now, but anyway - I'll do it later. This patch adds new section CPT_SECT_SNMP_STATS that is populated with CPT_OBJ_BITS set of objects - one for each type of statistics. Objects have variable length. Stats are stored as a plain array of __u32 numbers and thus the order in which stats types are stored is implicitly hard-coded. In case we do not have an IPV6 turned on all ipv6 stats are dumped as CPT_OBJ_BITS/CPT_CONTENT_VOID and are skipped on restore. When we restore from an image with more stats in any type, the not supported ones are dropped with a warning. Stats add 28K to image file. Bug #113930 Signed-off-by: Pavel Emelyanov <xemul@openvz.org>