summaryrefslogtreecommitdiff
path: root/tools/vgck.c
diff options
context:
space:
mode:
authorPeter Rajnoha <prajnoha@redhat.com>2014-11-27 15:02:13 +0100
committerPeter Rajnoha <prajnoha@redhat.com>2015-02-10 16:05:24 +0100
commit51d96a170314b7ce75f233d42501262805384770 (patch)
treeda64397e4a7903edd59743b78a43e385dda83a19 /tools/vgck.c
parent2a19866a74c5101d262586ad0e08317e9a514977 (diff)
downloadlvm2-51d96a170314b7ce75f233d42501262805384770.tar.gz
toollib: replace void *handle with struct processing_handle for use in processing functions (process_each_*/process_single_* and related)
This patch replaces "void *handle" with "struct processing_handle *handle" in process_each_*, process_single_* and related functions. The struct processing_handle consists of two handles inside now: - the "struct selection_handle *selection_handle" used for applying selection criteria while processing process_each_*, process_single_* and related functions (patches using this logic will follow) - the "void* custom_handle" (this is actually the original handle used before this patch - a pointer to custom data passed into process_each_*, process_single_* and related functions).
Diffstat (limited to 'tools/vgck.c')
-rw-r--r--tools/vgck.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/vgck.c b/tools/vgck.c
index b9d05ae1c..16312891b 100644
--- a/tools/vgck.c
+++ b/tools/vgck.c
@@ -18,7 +18,7 @@
static int vgck_single(struct cmd_context *cmd __attribute__((unused)),
const char *vg_name,
struct volume_group *vg,
- void *handle __attribute__((unused)))
+ struct processing_handle *handle __attribute__((unused)))
{
if (!vg_check_status(vg, EXPORTED_VG))
return_ECMD_FAILED;