1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-03-11 20:58:50 +03:00
Milan Broz d66abfb82a Fix pvseg report for orphan PVs and other devices.
If user requests report attribute from PVSEG type
and PV is orphan (or all devices is set), the report
is empty.

Try for example (when only orphan PV are present)
 #pvs
 #pvs -o +devices
# pvs /dev/sdb1
  PV         VG   Fmt  Attr PSize  PFree
    /dev/sdb1       lvm2 --   46.58G 46.58G
# pvs -o +devices /dev/sdb1
(no output)

The problem is caused by empty pv->segments list.

Fix it by providing fake segment here (similar to fake structures
in _pvsegs_sub_single() calls.
2009-04-21 12:59:18 +00:00
..
2004-03-26 14:51:23 +00:00
2008-10-30 17:52:06 +00:00
2008-01-30 14:00:02 +00:00
2008-01-30 14:00:02 +00:00
2008-01-30 14:00:02 +00:00
2009-01-20 20:37:41 +00:00
2008-01-30 14:00:02 +00:00
2008-01-30 14:00:02 +00:00
2009-04-15 14:42:27 +00:00
2008-01-30 14:00:02 +00:00
2008-11-04 14:57:06 +00:00
2008-01-30 14:00:02 +00:00
2009-03-16 15:19:29 +00:00
2008-01-30 14:00:02 +00:00