]> sourceware.org Git - lvm2.git/commit
toollib: remove unneeded call in process_each_pv
authorDavid Teigland <teigland@redhat.com>
Thu, 7 Apr 2016 18:45:26 +0000 (13:45 -0500)
committerDavid Teigland <teigland@redhat.com>
Tue, 19 Apr 2016 14:40:24 +0000 (09:40 -0500)
commite41ee70accbc604e3a7daea0ab10f9405e95a531
treeb8686cb42105fd726bf55434576f4273a4cd797d
parenta6a32a7c0e6ed9ef9e61e82b2d1353a1c06a9dd3
toollib: remove unneeded call in process_each_pv

process_each_pv was doing:

1. lvmcache_seed_infos_from_lvmetad()
   sends pv_list request to lvmetad.

2. get_vgnameids()
   sends vg_list request to lvmetad.

3. _get_all_devices()
   first calls lvmcache_seed_infos_from_lvmetad(),
   which is a no-op if it's already been called.

Because get_vgnameids() does not use the information
from lvmcache_seed_infos_from_lvmetad(), it does not
need to be called prior to get_all_devices where
it is actually needed.
tools/toollib.c
This page took 0.041565 seconds and 5 git commands to generate.