LVM2 ./WHATS_NEW lib/format_text/import_vsn1.c
CVSROOT: /cvs/lvm2
Module name: LVM2
Changes by: zkabelac at sourceware.org 2012-01-25 21:43:51
Modified files:
. : WHATS_NEW
lib/format_text: import_vsn1.c
Log message:
Check for correctness of uint64 value if exists
Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/WHATS_NEW.diff?cvsroot=lvm2&r1=1.2240&r2=1.2241
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/lib/format_text/import_vsn1.c.diff?cvsroot=lvm2&r1=1.98&r2=1.99
WHATS_NEW +1 -0
@@ -1,5 +1,6 @@ Version 2.02.89 - ================================== + Check for correctness of uint64 dev_size value. Rename origin_only parameter to more generic flag use_layer for lv_info(). Thin pools have segment fields thin_count, zero, transaction_id. Each new created LV volume has creation lv_time and lv_host.
lib/format_text/import_vsn1.c +5 -1
@@ -216,7 +216,11 @@ pv->status |=MISSING_PV ;/* Late addition */ -_read_uint64 (pvn,"dev_size" , &pv->size); +if (dm_config_has_node (pvn,"dev_size" ) && + !_read_uint64 (pvn,"dev_size" , &pv->size)) { +log_error ("Couldn't read dev size for physical volume." ); +return 0 ; + }if (!_read_uint64 (pvn,"pe_start" , &pv->pe_start)) {log_error ("Couldn't read extent size for physical volume." );