master - pvscan: fix report of long pv names
Gitweb: http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=3d7eaf9226d6e425721f12da5ff4cd47209324df Commit: 3d7eaf9226d6e425721f12da5ff4cd47209324df Parent: caf93eb1cb74050658dcf1816254ae3666aa3818 Author: Zdenek Kabelac <[email protected]> AuthorDate: Wed Mar 19 00:17:36 2014 +0100 Committer: Zdenek Kabelac <[email protected]> CommitterDate: Wed Mar 19 00:58:01 2014 +0100
pvscan: fix report of long pv names
pvscan --uuid was broken since it was using only 128 char buffers without checking any write size, so any longer device path leads to crash.
Also ansure format is properly aligned into columns with this option.
--- WHATS_NEW | 1 + tools/pvscan.c | 57 ++++++++++++++++++++++++------------------------------- 2 files changed, 26 insertions(+), 32 deletions(-)
WHATS_NEW +1 -0
@@ -1,5 +1,6 @@ Version 2.02.106 - ==================================== + Fix memory corruption when pvscan reports long pv names. Do not report internal orphan VG names when reporting pvdisplay/pvscan. Fix pvdisplay -c man page referencing KB instead of sectors. Skip redundant synchronization calls on local clvmd.
tools/pvscan.c +25 -32
83 lines not on this page · raw message