diff options
author | David Teigland <teigland@redhat.com> | 2016-11-29 12:00:15 -0600 |
---|---|---|
committer | David Teigland <teigland@redhat.com> | 2017-02-13 08:20:10 -0600 |
commit | 9c6c55c314199a9ba26fe1b864306b2ca8a8dbcd (patch) | |
tree | ec7c1cf043023cc2335a61016c47604237b215d2 /tools/vgdisplay.c | |
parent | 1e2420bca85da9a37570871cd70192e9ae831786 (diff) | |
download | lvm2-9c6c55c314199a9ba26fe1b864306b2ca8a8dbcd.tar.gz |
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.
Diffstat (limited to 'tools/vgdisplay.c')
-rw-r--r-- | tools/vgdisplay.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/vgdisplay.c b/tools/vgdisplay.c index 7bb2e6a2b..7fc64b055 100644 --- a/tools/vgdisplay.c +++ b/tools/vgdisplay.c @@ -38,7 +38,7 @@ static int vgdisplay_single(struct cmd_context *cmd, const char *vg_name, vgdisplay_extents(vg); process_each_lv_in_vg(cmd, vg, NULL, NULL, 0, NULL, - (process_single_lv_fn_t)lvdisplay_full); + NULL, (process_single_lv_fn_t)lvdisplay_full); log_print("--- Physical volumes ---"); process_each_pv_in_vg(cmd, vg, NULL, |