LVM2 ./WHATS_NEW_DM libdm/libdm-deptree.c
CVSROOT: /cvs/lvm2
Module name: LVM2
Changes by: zkabelac at sourceware.org 2012-01-25 21:50:51
Modified files:
. : WHATS_NEW_DM
libdm : libdm-deptree.c
Log message:
Ensure whole info is initialised
Since _create_dm_tree_node is copying whole structure, make sure all members are initialized.
Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/WHATS_NEW_DM.diff?cvsroot=lvm2&r1=1.532&r2=1.533
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/libdm/libdm-deptree.c.diff?cvsroot=lvm2&r1=1.152&r2=1.153
WHATS_NEW_DM +1 -0
@@ -1,5 +1,6 @@ Version 1.02.68 - ================================== + Reset all members of info struct in dm_tree_add_new_dev_with_udev_flags. Add dmsetup wipe_table to replace table with one that uses error target. Add 'blkdevname' and 'blkdevs_used' field to dmsetup info -c -o. Add 'blkdevname' option to dmsetup ls --tree to see block device names.
libdm/libdm-deptree.c +1 -6
@@ -1101,12 +1101,7 @@return NULL ; } - info.major =0 ; - info.minor =0 ; - info.exists =0 ; - info.live_table =0 ; - info.inactive_table =0 ; - info.read_only =0 ; +memset (&info,0 ,sizeof (info));if (!(dnode =_create_dm_tree_node (dtree, name2, uuid2, &info, context,0 )))