From: zkabelac@sourceware.org
To: dm-cvs@sourceware.org, dm-devel@redhat.com
Subject: dmraid/lib/metadata metadata.c
Date: 13 Jul 2010 20:13:13 -0000 [thread overview]
Message-ID: <20100713201313.21680.qmail@sourceware.org> (raw)
CVSROOT: /cvs/dm
Module name: dmraid
Changes by: zkabelac@sourceware.org 2010-07-13 20:13:13
Modified files:
lib/metadata : metadata.c
Log message:
Use static for localy some used functions.
Use const char *dp for find_disk()
Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/dmraid/lib/metadata/metadata.c.diff?cvsroot=dm&r1=1.12&r2=1.13
--- dmraid/lib/metadata/metadata.c 2010/03/19 13:56:49 1.12
+++ dmraid/lib/metadata/metadata.c 2010/07/13 20:13:13 1.13
@@ -761,7 +761,7 @@
}
/* Discover RAID devices that are spares */
-void
+static void
discover_raid_devices_spares(struct lib_context *lc, const char *format)
{
struct dev_info *di;
@@ -1146,7 +1146,7 @@
}
/* Parse RAID set creation arguments. */
-int
+static int
parse_rs_args(struct lib_context *lc, char **argv, struct raid_set_descr *rsd)
{
int o, n, opt_idx;
@@ -1215,7 +1215,7 @@
}
struct dev_info *
-find_disk(struct lib_context *lc, char *dp)
+find_disk(struct lib_context *lc, const char *dp)
{
struct dev_info *di;
@@ -1337,7 +1337,7 @@
_free_raid_set(lc, rs);
}
-struct raid_dev *
+static struct raid_dev *
find_raiddev(struct lib_context *lc, struct raid_set *rs, struct dev_info *di)
{
struct raid_dev *rd;
@@ -1353,7 +1353,7 @@
return NULL;
}
-struct raid_set *
+static struct raid_set *
create_raidset(struct lib_context *lc, struct raid_set_descr *rsd)
{
struct raid_set *rs, *rs_sub, *rs_tmp;
@@ -1459,7 +1459,7 @@
return NULL;
}
-int
+static int
rebuild_config_raidset(struct lib_context *lc, struct raid_set *rs)
{
@@ -2056,7 +2056,7 @@
}
-void
+static void
format_error(struct lib_context *lc, const char *error, char **argv)
{
log_print_nnl(lc, "no raid %s", error);
next reply other threads:[~2010-07-13 20:13 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-07-13 20:13 zkabelac [this message]
-- strict thread matches above, loose matches on Subject: below --
2009-11-04 13:06 dmraid/lib/metadata metadata.c heinzm
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=20100713201313.21680.qmail@sourceware.org \
--to=zkabelac@sourceware.org \
--cc=dm-cvs@sourceware.org \
--cc=dm-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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox