]> sourceware.org Git - lvm2.git/commit
cleanup: improve tag processing
authorZdenek Kabelac <zkabelac@redhat.com>
Tue, 8 Nov 2011 22:29:40 +0000 (23:29 +0100)
committerZdenek Kabelac <zkabelac@redhat.com>
Thu, 12 Dec 2013 12:29:20 +0000 (13:29 +0100)
commitfe21b02fabe1dddeb45c4cfd0be475846dd0f906
tree01c8c0858fa24d2d2648d4e8c8f424e67289dc4e
parent1c2cc2f794f540c0efead257bb8f8f1d909a053c
cleanup: improve tag processing

Boolean algebra changes for process_each_lv_in_vg().

1st.
Drop process_lv variable since it's not needed.

2nd.
process_lv was always initilized to 0 - so the condition was always true.
It the condition (!tags_supplied && !lvargs_supplied) evaluates as "true",
process_all is already set to 1, so skip vg tags evaluation.

3rd.
Move check for matching lv name in the front of lv tags check
since this check can't be skipped for lvargs_matched counter.
If this filter evaluates to true, skip lv tags evaluation.
WHATS_NEW
tools/toollib.c
This page took 0.035593 seconds and 5 git commands to generate.