diff options
author | David Teigland <teigland@redhat.com> | 2014-10-07 00:34:04 +0100 |
---|---|---|
committer | Alasdair G Kergon <agk@redhat.com> | 2014-10-07 01:15:43 +0100 |
commit | f1a000a477558e157532d5f2cd2f9c9139d4f87c (patch) | |
tree | f5c8bcf093bd44907cfdae5ee6678ff96121ed1d /tools/vgdisplay.c | |
parent | aeb4d3b740434ed04993e9e7ef74f6e3462efb50 (diff) | |
download | lvm2-f1a000a477558e157532d5f2cd2f9c9139d4f87c.tar.gz |
toollib: Rewrite process_each_pv.
Process PVs by iterating through VGs, then iterating through
devices if the command needs to process non-PV devices.
The process_single function can always use the VG and PV args.
[Committed by agk with cosmetic changes and tweaks.]
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 39cdaf386..95a5ebd9e 100644 --- a/tools/vgdisplay.c +++ b/tools/vgdisplay.c @@ -43,7 +43,7 @@ static int vgdisplay_single(struct cmd_context *cmd, const char *vg_name, (process_single_lv_fn_t)lvdisplay_full); log_print("--- Physical volumes ---"); - process_each_pv_in_vg(cmd, vg, NULL, NULL, + process_each_pv_in_vg(cmd, vg, NULL, (process_single_pv_fn_t)pvdisplay_short); } |