From eb7692743f3a718bbe697998cbfad4212adc1bcd Mon Sep 17 00:00:00 2001 From: Zdenek Kabelac Date: Tue, 23 Mar 2010 14:24:04 +0000 Subject: [PATCH] Remove const modifier for struct volume_group* from process_each_lv_in_vg(). Content of this pointer is not const during this function. --- WHATS_NEW | 1 + tools/toollib.c | 2 +- tools/toollib.h | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/WHATS_NEW b/WHATS_NEW index 9a073b251..a4dad87ac 100644 --- a/WHATS_NEW +++ b/WHATS_NEW @@ -1,5 +1,6 @@ Version 2.02.63 - ================================ + Remove const modifier for struct volume_group* from process_each_lv_in_vg(). Don't allow resizing of internal logical volumes. Fix libdevmapper-event pkgconfig version string to match libdevmapper. Avoid scanning all pvs in the system if operating on a device with mdas. diff --git a/tools/toollib.c b/tools/toollib.c index efe870c45..547016928 100644 --- a/tools/toollib.c +++ b/tools/toollib.c @@ -83,7 +83,7 @@ char *skip_dev_dir(struct cmd_context *cmd, const char *vg_name, * Metadata iteration functions */ int process_each_lv_in_vg(struct cmd_context *cmd, - const struct volume_group *vg, + struct volume_group *vg, const struct dm_list *arg_lvnames, const struct dm_list *tags, void *handle, diff --git a/tools/toollib.h b/tools/toollib.h index 4743fd597..d284de416 100644 --- a/tools/toollib.h +++ b/tools/toollib.h @@ -76,7 +76,7 @@ typedef int (*process_single_lv_fn_t) (struct cmd_context *cmd, void *handle); int process_each_lv_in_vg(struct cmd_context *cmd, - const struct volume_group *vg, + struct volume_group *vg, const struct dm_list *arg_lvnames, const struct dm_list *tags, void *handle, -- 2.43.5