diff options
author | Alasdair G Kergon <agk@redhat.com> | 2014-10-07 16:45:45 +0100 |
---|---|---|
committer | Alasdair G Kergon <agk@redhat.com> | 2014-10-07 16:45:45 +0100 |
commit | f3bb1c018f7b6e38f0351a9994760bae7d9f00e3 (patch) | |
tree | 996a26096c48375db3f21b9822b45d9fefbf26e3 /tools/toollib.h | |
parent | d623034e62a5fe0ba541e6d1e543f43ae90a834f (diff) | |
download | lvm2-f3bb1c018f7b6e38f0351a9994760bae7d9f00e3.tar.gz |
vgremove: Use process_each_lv_in_vg.
Diffstat (limited to 'tools/toollib.h')
-rw-r--r-- | tools/toollib.h | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/tools/toollib.h b/tools/toollib.h index 5b42f2846..037b7d70b 100644 --- a/tools/toollib.h +++ b/tools/toollib.h @@ -74,11 +74,9 @@ int process_each_pv_in_vg(struct cmd_context *cmd, struct volume_group *vg, void *handle, process_single_pv_fn_t process_single_pv); -int process_each_lv_in_vg(struct cmd_context *cmd, - struct volume_group *vg, - struct dm_list *arg_lvnames, - const struct dm_list *tagsl, - void *handle, +int process_each_lv_in_vg(struct cmd_context *cmd, struct volume_group *vg, + struct dm_list *arg_lvnames, const struct dm_list *tagsl, + int stop_on_error, void *handle, process_single_lv_fn_t process_single_lv); const char *extract_vgname(struct cmd_context *cmd, const char *lv_name); @@ -135,4 +133,7 @@ int get_and_validate_major_minor(const struct cmd_context *cmd, int validate_lvname_param(struct cmd_context *cmd, const char **vg_name, const char **lv_name); +int lvremove_single(struct cmd_context *cmd, struct logical_volume *lv, + void *handle __attribute__((unused))); + #endif |