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/toollib.h | |
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/toollib.h')
-rw-r--r-- | tools/toollib.h | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/tools/toollib.h b/tools/toollib.h index ae4b21ecb..483ac6813 100644 --- a/tools/toollib.h +++ b/tools/toollib.h @@ -50,8 +50,7 @@ int process_each_vg(struct cmd_context *cmd, int argc, char **argv, int process_each_pv(struct cmd_context *cmd, int argc, char **argv, struct volume_group *vg, uint32_t lock_type, - int scan_label_only, void *handle, - process_single_pv_fn_t process_single_pv); + void *handle, process_single_pv_fn_t process_single_pv); int process_each_label(struct cmd_context *cmd, int argc, char **argv, void *handle, process_single_label_fn_t process_single_label); @@ -72,8 +71,7 @@ int process_each_segment_in_lv(struct cmd_context *cmd, process_single_seg_fn_t process_single_seg); int process_each_pv_in_vg(struct cmd_context *cmd, struct volume_group *vg, - const struct dm_list *tagsl, void *handle, - process_single_pv_fn_t process_single_pv); + void *handle, process_single_pv_fn_t process_single_pv); int process_each_lv_in_vg(struct cmd_context *cmd, |