LVM2 ./WHATS_NEW lib/device/device.c test/test ...
CVSROOT: /cvs/lvm2
Module name: LVM2
Changes by: agk at sourceware.org 2010-04-06 17:36:43
Modified files:
. : WHATS_NEW lib/device : device.c test : test-utils.sh
Log message:
Fix is_partitioned_dev not to attempt to reopen device.
Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/WHATS_NEW.diff?cvsroot=lvm2&r1=1.1503&r2=1.1504
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/lib/device/device.c.diff?cvsroot=lvm2&r1=1.32&r2=1.33
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/test/test-utils.sh.diff?cvsroot=lvm2&r1=1.28&r2=1.29
WHATS_NEW +1 -0
@@ -1,5 +1,6 @@ Version 2.02.63 - ================================ + Fix is_partitioned_dev not to attempt to reopen device. Fix another thread race in clvmd. Refactor management of vg->pvs list. Fix lcov rules and generate better coverage report.
lib/device/device.c +1 -10
@@ -62,13 +62,8 @@uint16_t *part_magic;struct partition *part; -if (!dev_open (dev)) { - stack; -return -1 ; - } -if (!dev_read (dev,UINT64_C (0 ),sizeof (buf), &buf)) - goto_out; + return_0;/* FIXME Check for other types of partition table too */
@@ -88,10 +83,6 @@ } } - out: -if (!dev_close (dev)) - stack; -return ret; }
test/test-utils.sh +9 -0
@@ -247,6 +247,15 @@ done finish_udev_transaction + for i in `seq 1 $n`; do + local name="${PREFIX}$pvname$i" + dmsetup info -c $name + done + for i in `seq 1 $n`; do + local name="${PREFIX}$pvname$i" + dmsetup table $name + done + # set up some default names vg=${PREFIX}vg vg1=${PREFIX}vg1