All of lore.kernel.org
 help / color / mirror / Atom feed
From: zkabelac@sourceware.org <zkabelac@sourceware.org>
To: lvm-devel@redhat.com
Subject: LVM2 lib/thin/thin.c libdm/libdevmapper.h libd ...
Date: 20 Oct 2011 10:31:28 -0000	[thread overview]
Message-ID: <20111020103128.29721.qmail@sourceware.org> (raw)

CVSROOT:	/cvs/lvm2
Module name:	LVM2
Changes by:	zkabelac at sourceware.org	2011-10-20 10:31:27

Modified files:
	lib/thin       : thin.c 
	libdm          : libdevmapper.h libdm-deptree.c 

Log message:
	Use const pointers in thin API were appropriate

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/lib/thin/thin.c.diff?cvsroot=lvm2&r1=1.20&r2=1.21
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/libdm/libdevmapper.h.diff?cvsroot=lvm2&r1=1.162&r2=1.163
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/libdm/libdm-deptree.c.diff?cvsroot=lvm2&r1=1.134&r2=1.135

--- LVM2/lib/thin/thin.c	2011/10/20 10:30:39	1.20
+++ LVM2/lib/thin/thin.c	2011/10/20 10:31:27	1.21
@@ -150,7 +150,7 @@
 static int _thin_pool_text_export(const struct lv_segment *seg, struct formatter *f)
 {
 	unsigned cnt = 0;
-	struct lv_thin_message *tmsg;
+	const struct lv_thin_message *tmsg;
 
 	outf(f, "pool = \"%s\"", seg_lv(seg, 0)->name);
 	outf(f, "metadata = \"%s\"", seg->pool_metadata_lv->name);
@@ -220,7 +220,7 @@
 				      uint32_t *pvmove_mirror_count __attribute__((unused)))
 {
 	char *metadata_dlid, *pool_dlid;
-	struct lv_thin_message *lmsg;
+	const struct lv_thin_message *lmsg;
 	struct dm_thin_message dmsg;
 
 	if (!(metadata_dlid = build_dm_uuid(mem, seg->pool_metadata_lv->lvid.s, NULL))) {
--- LVM2/libdm/libdevmapper.h	2011/10/20 10:28:42	1.162
+++ LVM2/libdm/libdevmapper.h	2011/10/20 10:31:27	1.163
@@ -589,7 +589,7 @@
 };
 
 int dm_tree_node_add_thin_pool_message(struct dm_tree_node *node,
-                                       struct dm_thin_message *message);
+                                       const struct dm_thin_message *message);
 
 int dm_tree_node_add_thin_target(struct dm_tree_node *node,
 				 uint64_t size,
--- LVM2/libdm/libdm-deptree.c	2011/10/20 10:28:42	1.134
+++ LVM2/libdm/libdm-deptree.c	2011/10/20 10:31:27	1.135
@@ -2874,7 +2874,7 @@
 }
 
 int dm_tree_node_add_thin_pool_message(struct dm_tree_node *node,
-				       struct dm_thin_message *message)
+				       const struct dm_thin_message *message)
 {
 	struct load_segment *seg;
 	struct thin_message *tm;



             reply	other threads:[~2011-10-20 10:31 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-10-20 10:31 zkabelac [this message]
  -- strict thread matches above, loose matches on Subject: below --
2011-11-12 22:44 LVM2 lib/thin/thin.c libdm/libdevmapper.h libd zkabelac
2011-11-03 14:45 zkabelac
2011-10-03 18:26 zkabelac

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20111020103128.29721.qmail@sourceware.org \
    --to=zkabelac@sourceware.org \
    --cc=lvm-devel@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.