Bug#551083: Parser fails on zero-size LVM data

Michael Tautschnig mt at debian.org
Thu Oct 15 13:24:41 UTC 2009


Package: liblinux-lvm-perl
Version: 0.14-1

On the FAI mailing list [1] a problem with the output parser has been brought up
which apparently is a regression from 0.13:

vgdisplay may output

  Alloc PE / Size       0 / 0

but LVM.pm uses
  
  m/^Alloc PE \/ Size\s+(\S+) \/ (\S+) (\S+)/

to parse this. As vgdisplay prints no units, the third (\S+) fails. In [1] the
user also suggested a patch to fix this.

Best,
Michael

[1] https://lists.uni-koeln.de/pipermail/linux-fai/2009-September/007285.html

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-perl-maintainers/attachments/20091015/9e8e4df7/attachment.pgp>


More information about the pkg-perl-maintainers mailing list