LVM2 lib/format_text/format-text.c ./WHATS_NEW ...
CVSROOT: /cvs/lvm2
Module name: LVM2
Changes by: wysochanski at sourceware.org 2008-07-16 21:32:39
Modified files:
lib/format_text: format-text.c
. : WHATS_NEW
Added files:
test : t-pvcreate-usage.sh
Log message:
Add pvcreate sanity tests, check for label_write() failure in _text_pv_write().
Failure to check for label_write() return code caused the following test to indicate it passed when it really failed:
pvcreate rejects labelsector > 1000000000000
Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/lib/format_text/format-text.c.diff?cvsroot=lvm2&r1=1.90&r2=1.91
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/test/t-pvcreate-usage.sh.diff?cvsroot=lvm2&r1=NONE&r2=1.1
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/WHATS_NEW.diff?cvsroot=lvm2&r1=1.930&r2=1.931
lib/format_text/format-text.c +4 -1
@@ -1363,7 +1363,10 @@ } } -label_write (pv->dev, label); +if (!label_write (pv->dev, label)) { +dev_close (pv->dev); + return_0; + }if (!dev_close (pv->dev)) return_0;
/cvs/lvm2/LVM2/test/t-pvcreate-usage.sh,v --> standard output revision 1.1
- renamed from test/t-pvcreate-usage.sh +115 -0
115 lines not on this page · raw message
WHATS_NEW +1 -0
@@ -1,5 +1,6 @@ Version 2.02.40 - ================================ + Add pvcreate sanity tests, check for label_write() failure in _text_pv_write(). Fix pvchange -M1 -u to preserve existing extent locations when there's a VG. Cease recognising snapshot-in-use percentages returned by early devt kernels. Add backward-compatible flags field to on-disk format_text metadata.