Skip to contentSkip to conversation

LVM2 ./WHATS_NEW tools/toollib.c tools/toollib.h

PATCH [email protected] 1 participant 1 message Mar 23, 2010

lore
Share & tools
lore
#0 lore raw

CVSROOT: /cvs/lvm2
Module name: LVM2
Changes by: zkabelac at sourceware.org 2010-03-23 14:24:04

Modified files:
. : WHATS_NEW
tools : toollib.c toollib.h

Log message:
Remove const modifier for struct volume_group* from process_each_lv_in_vg(). Content of this pointer is not const during this function.

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/WHATS_NEW.diff?cvsroot=lvm2&r1=1.1472&r2=1.1473
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/tools/toollib.c.diff?cvsroot=lvm2&r1=1.188&r2=1.189
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/tools/toollib.h.diff?cvsroot=lvm2&r1=1.68&r2=1.69

WHATS_NEW +1 -0
@@ -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.
tools/toollib.c +1 -1
@@ -83,7 +83,7 @@
  * 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,
tools/toollib.h +1 -1
@@ -76,7 +76,7 @@
 				  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,