master - toollib: Rewrite process_each_vg.
Gitweb: http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=bfb6a4ecc6ad7bb06649ffd026d9c997443dd684 Commit: bfb6a4ecc6ad7bb06649ffd026d9c997443dd684 Parent: 91198ac13e61c66b65884660410311ffc8b8c24e Author: David Teigland <[email protected]> AuthorDate: Fri Oct 3 20:47:19 2014 +0100 Committer: Alasdair G Kergon <[email protected]> CommitterDate: Fri Oct 3 20:47:19 2014 +0100
toollib: Rewrite process_each_vg.
Split VG argument collection from processing. This allows the two different loops through VGs to be replaced by a single loop.
Replace unused struct cmd_vg and cmd_vg_read() replicator code with struct vg and vg_read() directly.
[Committed by agk with cosmetic changes and tweaks.]
--- WHATS_NEW | 1 + tools/toollib.c | 391 ++++++++++++++++++++++++++++++++++--------------------- 2 files changed, 246 insertions(+), 146 deletions(-)
WHATS_NEW +1 -0
@@ -1,5 +1,6 @@ Version 2.02.112 - ===================================== + Refactor process_each_vg in toollib. Pools cannot be used as external origin. Use lv_update_and_reload() for snapshot reload. Don't print message in adjusted_mirror_region_size() in activation.
tools/toollib.c +245 -146
406 lines not on this page · raw message