From: wysochanski@sourceware.org <wysochanski@sourceware.org>
To: lvm-devel@redhat.com
Subject: LVM2/lib/metadata metadata-exported.h metadata.c
Date: 26 Jul 2009 02:02:23 -0000 [thread overview]
Message-ID: <20090726020223.9205.qmail@sourceware.org> (raw)
CVSROOT: /cvs/lvm2
Module name: LVM2
Changes by: wysochanski at sourceware.org 2009-07-26 02:02:22
Modified files:
lib/metadata : metadata-exported.h metadata.c
Log message:
Remove use of void * from pvcreate_single.
We should use struct pvcreate_params to utilize compiler typechecking.
Author: Dave Wysochanski <dwysocha@redhat.com>
Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/lib/metadata/metadata-exported.h.diff?cvsroot=lvm2&r1=1.98&r2=1.99
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/lib/metadata/metadata.c.diff?cvsroot=lvm2&r1=1.265&r2=1.266
--- LVM2/lib/metadata/metadata-exported.h 2009/07/26 01:53:57 1.98
+++ LVM2/lib/metadata/metadata-exported.h 2009/07/26 02:02:22 1.99
@@ -355,7 +355,7 @@
};
pv_t * pvcreate_single(struct cmd_context *cmd, const char *pv_name,
- void *handle);
+ struct pvcreate_params *pp);
/*
* Utility functions
--- LVM2/lib/metadata/metadata.c 2009/07/26 01:54:20 1.265
+++ LVM2/lib/metadata/metadata.c 2009/07/26 02:02:22 1.266
@@ -1119,19 +1119,16 @@
* pv_t * (non-NULL): handle to physical volume created
*/
pv_t * pvcreate_single(struct cmd_context *cmd, const char *pv_name,
- void *handle)
+ struct pvcreate_params *pp)
{
- struct pvcreate_params *pp;
void *pv;
struct device *dev;
struct dm_list mdas;
struct pvcreate_params default_pp;
fill_default_pvcreate_params(&default_pp);
- if (!handle)
+ if (!pp)
pp = &default_pp;
- else
- pp = (struct pvcreate_params *) handle;
if (pp->idp) {
if ((dev = device_from_pvid(cmd, pp->idp)) &&
next reply other threads:[~2009-07-26 2:02 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-07-26 2:02 wysochanski [this message]
-- strict thread matches above, loose matches on Subject: below --
2010-06-29 22:41 LVM2/lib/metadata metadata-exported.h metadata.c wysochanski
2010-06-28 20:36 wysochanski
2010-05-19 11:52 wysochanski
2010-04-13 17:26 wysochanski
2009-07-26 1:53 wysochanski
2009-07-15 17:26 agk
2009-07-15 6:10 mornfall
2009-07-10 21:19 wysochanski
2009-07-08 14:31 wysochanski
2009-07-08 14:28 wysochanski
2009-06-09 14:29 wysochanski
2009-06-09 14:59 ` Petr Rockai
2009-01-27 1:48 agk
2009-01-27 0:40 agk
2009-01-26 22:13 agk
2008-03-13 22:51 wysochanski
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=20090726020223.9205.qmail@sourceware.org \
--to=wysochanski@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.