summaryrefslogtreecommitdiff
path: root/tools/toollib.h
diff options
context:
space:
mode:
authorDavid Teigland <teigland@redhat.com>2014-11-24 11:08:41 +0100
committerPeter Rajnoha <prajnoha@redhat.com>2015-02-10 16:04:41 +0100
commit455ef6f2f58e5af11a75eb4b369c1a48780b068d (patch)
tree0b231f6dc82c006d6e926dfbed6f890477d00070 /tools/toollib.h
parent123a3383a021df737852892ff400f047b5ff609e (diff)
downloadlvm2-455ef6f2f58e5af11a75eb4b369c1a48780b068d.tar.gz
toollib: prepare select_match_{pv,vg,lv} hooks
These hooks will check currently processed PV/VG/LV with current selection criteria and the processing continues only if there's a match.
Diffstat (limited to 'tools/toollib.h')
-rw-r--r--tools/toollib.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/tools/toollib.h b/tools/toollib.h
index 715f65eda..56259fb70 100644
--- a/tools/toollib.h
+++ b/tools/toollib.h
@@ -79,6 +79,13 @@ int process_each_lv_in_vg(struct cmd_context *cmd, struct volume_group *vg,
int stop_on_error, void *handle,
process_single_lv_fn_t process_single_lv);
+int select_match_vg(struct cmd_context *cmd, struct volume_group *vg,
+ int *selected);
+int select_match_lv(struct cmd_context *cmd, struct volume_group *vg,
+ struct logical_volume *lv, int *selected);
+int select_match_pv(struct cmd_context *cmd, struct volume_group *vg,
+ struct physical_volume *pv, int *selected);
+
const char *extract_vgname(struct cmd_context *cmd, const char *lv_name);
const char *skip_dev_dir(struct cmd_context *cmd, const char *vg_name,
unsigned *dev_dir_found);