]> sourceware.org Git - lvm2.git/commit
lv_manip: enhance for_each_sub_lv
authorZdenek Kabelac <zkabelac@redhat.com>
Wed, 28 Feb 2018 16:00:33 +0000 (17:00 +0100)
committerZdenek Kabelac <zkabelac@redhat.com>
Wed, 28 Feb 2018 20:08:38 +0000 (21:08 +0100)
commitbc1adc32cbd593dd1839526da82521b429b13141
treeb2494be6d6cca249c77c89357ce1982bb9ae9dd4
parent6b48868cf0754b13e4efaaaec33cf8c9deba2d40
lv_manip: enhance for_each_sub_lv

Fix missing 'externalLV' traversing for thins with external origins.

Replace extra for_each_sub_lv_except_pools() with better
internal logic allowing selectively to cut of processed subLV tree.

Extend error code for function 'fn()' when it returns -1 it will
stop futher tree scan for given LV.

Also a bit simplify code to have only one place that
is calling 'fn()' and use level counter to know
depth of traversing.

Update renaming travering to skip trees for pools
and external origins.
WHATS_NEW
lib/metadata/lv_manip.c
lib/metadata/metadata.h
This page took 0.035688 seconds and 5 git commands to generate.