1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-22 17:35:59 +03:00
lvm2/lib/cache
David Teigland 83d475626a pvscan: use process_each_pv
The old code made two loops through the PVs: in the first
loop it found the max PV and VG name lengths, and in the
second loop it printed each PV using the name lengths as
field widths for aligning columns.

The new code uses process_each_pv() which makes one loop
through the PVs.  In the *first* call to pvscan_single(),
the max name lengths are found by looping through the
lvmcache entries which have been populated by the generic
process_each code prior to calling any _single functions.
Subsequent calls to pvscan_single() reuse the max lengths
that were found by the first call.
2015-10-19 16:15:51 -05:00
..
lvmcache.c pvscan: use process_each_pv 2015-10-19 16:15:51 -05:00
lvmcache.h pvscan: use process_each_pv 2015-10-19 16:15:51 -05:00
lvmetad.c Fix segfault when lvmlockd is running but not lvmetad 2015-10-09 12:20:22 -05:00
lvmetad.h Reread global state the lvmetad copy is stale 2015-06-23 16:36:40 -05:00