public inbox for lvm2-cvs@sourceware.org
help / color / mirror / Atom feed
From: prajnoha@sourceware.org
To: lvm-devel@redhat.com, lvm2-cvs@sourceware.org
Subject: LVM2/lib/format_text format-text.c format-text.h
Date: Wed, 02 Mar 2011 10:19:00 -0000	[thread overview]
Message-ID: <20110302101915.13225.qmail@sourceware.org> (raw)

CVSROOT:	/cvs/lvm2
Module name:	LVM2
Changes by:	prajnoha@sourceware.org	2011-03-02 10:19:14

Modified files:
	lib/format_text: format-text.c format-text.h 

Log message:
	Make add_metadata_area_to_pv/remove_metadata_area_from_pv static.
	
	No need to put these in format-text.h, it's not used anywhere else actually.

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/lib/format_text/format-text.c.diff?cvsroot=lvm2&r1=1.171&r2=1.172
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/lib/format_text/format-text.h.diff?cvsroot=lvm2&r1=1.31&r2=1.32

--- LVM2/lib/format_text/format-text.c	2011/02/28 17:05:48	1.171
+++ LVM2/lib/format_text/format-text.c	2011/03/02 10:19:14	1.172
@@ -1848,11 +1848,11 @@
 	return 1;
 }
 
-int add_metadata_area_to_pv(struct physical_volume *pv,
-			    unsigned mda_index,
-			    uint64_t mda_start,
-			    uint64_t mda_size,
-			    unsigned mda_ignored)
+static int _add_metadata_area_to_pv(struct physical_volume *pv,
+				    unsigned mda_index,
+				    uint64_t mda_start,
+				    uint64_t mda_size,
+				    unsigned mda_ignored)
 {
 	struct metadata_area *mda;
 	struct mda_context *mdac;
@@ -2101,8 +2101,8 @@
 		}
 
 		/* Finally, add new metadata area to PV's format instance. */
-		if (!add_metadata_area_to_pv(pv, mda_index, mda_start,
-					     mda_size, mda_ignored))
+		if (!_add_metadata_area_to_pv(pv, mda_index, mda_start,
+					      mda_size, mda_ignored))
 			return_0;
 	}
 
@@ -2114,8 +2114,8 @@
 	return 0;
 }
 
-int remove_metadata_area_from_pv(struct physical_volume *pv,
-				 unsigned mda_index)
+static int _remove_metadata_area_from_pv(struct physical_volume *pv,
+					 unsigned mda_index)
 {
 	if (mda_index >= FMT_TEXT_MAX_MDAS_PER_PV) {
 		log_error(INTERNAL_ERROR "can't remove metadata area with "
@@ -2134,7 +2134,7 @@
 					 struct physical_volume *pv,
 					 unsigned mda_index)
 {
-	return remove_metadata_area_from_pv(pv, mda_index);
+	return _remove_metadata_area_from_pv(pv, mda_index);
 }
 
 static int _text_pv_resize(const struct format_type *fmt,
--- LVM2/lib/format_text/format-text.h	2011/02/21 12:17:54	1.31
+++ LVM2/lib/format_text/format-text.h	2011/03/02 10:19:14	1.32
@@ -55,14 +55,6 @@
 int add_da(struct dm_pool *mem, struct dm_list *das,
 	   uint64_t start, uint64_t size);
 void del_das(struct dm_list *das);
-
-int add_metadata_area_to_pv(struct physical_volume *pv,
-			    unsigned mda_index,
-			    uint64_t mda_start,
-			    uint64_t mda_size,
-			    unsigned mda_ignored);
-int remove_metadata_area_from_pv(struct physical_volume *pv,
-				 unsigned mda_index);
 int add_mda(const struct format_type *fmt, struct dm_pool *mem, struct dm_list *mdas,
 	    struct device *dev, uint64_t start, uint64_t size, unsigned ignored);
 void del_mdas(struct dm_list *mdas);


                 reply	other threads:[~2011-03-02 10:19 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=20110302101915.13225.qmail@sourceware.org \
    --to=prajnoha@sourceware.org \
    --cc=lvm-devel@redhat.com \
    --cc=lvm2-cvs@sourceware.org \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).