1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-01-31 05:47:43 +03:00
lvm2/lib/metadata
Peter Rajnoha 722ca363f0 report: fix pvs -o pv_free reporting for PVs with 0 PEs
[0] raw/~ # lsblk -o NAME,SIZE /dev/sda
NAME  SIZE
sda   128M

[0] raw/~ # pvcreate --dataalignment 128m /dev/sda
  Physical volume "/dev/sda" successfully created

[0] raw/~ # vgcreate vg /dev/sda
  Volume group "vg" successfully created

[0] raw/~ # lvcreate -l1 vg
  Volume group "vg" has insufficient free space (0 extents): 1 required.

Before this patch:
[0] raw/~ # pvs -o pv_name,pv_free
  PV         PFree
  /dev/sda   128.00m

After this patch:
[0] raw/~ # pvs -o pv_name,pv_free
  PV         PFree
  /dev/sda      0
2013-02-21 13:28:07 +01:00
..
2013-02-04 19:05:43 +01:00
2013-02-04 19:01:10 +01:00
2013-02-04 19:01:10 +01:00
2013-01-07 22:30:29 +00:00
2013-02-05 16:54:11 +01:00
2013-02-05 14:27:24 +01:00
2013-01-07 22:30:29 +00:00
2011-06-01 19:29:31 +00:00
2013-02-05 16:54:11 +01:00
2013-01-07 22:30:29 +00:00
2012-02-13 11:03:59 +00:00