]> sourceware.org Git - lvm2.git/commit
process_each_lv: add check_single_lv function
authorDavid Teigland <teigland@redhat.com>
Tue, 29 Nov 2016 18:00:15 +0000 (12:00 -0600)
committerDavid Teigland <teigland@redhat.com>
Mon, 13 Feb 2017 14:20:10 +0000 (08:20 -0600)
commit9c6c55c314199a9ba26fe1b864306b2ca8a8dbcd
treeec7c1cf043023cc2335a61016c47604237b215d2
parent1e2420bca85da9a37570871cd70192e9ae831786
process_each_lv: add check_single_lv function

The new check_single_lv() function is called prior to the
existing process_single_lv().  If the check function returns 0,
the LV will not be processed.

The check_single_lv function is meant to be a standard method
to validate the combination of specific command + specific LV,
and decide if the combination is allowed.  The check_single
function can be used by anything that calls process_each_lv.

As commands are migrated to take advantage of command
definitions, each command definition gets its own entry
point which calls process_each for itself, passing a
pair of check_single/process_single functions which can
be specific to the narrowly defined command def.
tools/lvchange.c
tools/lvconvert.c
tools/lvdisplay.c
tools/lvremove.c
tools/lvscan.c
tools/reporter.c
tools/toollib.c
tools/toollib.h
tools/vgdisplay.c
tools/vgmknodes.c
tools/vgremove.c
This page took 0.040016 seconds and 5 git commands to generate.