public inbox for lvm2-cvs@sourceware.org help / color / mirror / Atom feed
From: wysochanski@sourceware.org To: lvm-devel@redhat.com, lvm2-cvs@sourceware.org Subject: LVM2 lib/metadata/metadata.c lib/metadata/meta ... Date: Tue, 19 Jun 2007 00:33:00 -0000 [thread overview] Message-ID: <20070619003344.20121.qmail@sourceware.org> (raw) CVSROOT: /cvs/lvm2 Module name: LVM2 Changes by: wysochanski@sourceware.org 2007-06-19 00:33:43 Modified files: lib/metadata : metadata.c metadata.h tools : vgextend.c Log message: Make vg_extend() format_instance * parameter internal to vg_extend() Patches: http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/lib/metadata/metadata.c.diff?cvsroot=lvm2&r1=1.118&r2=1.119 http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/lib/metadata/metadata.h.diff?cvsroot=lvm2&r1=1.163&r2=1.164 http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/tools/vgextend.c.diff?cvsroot=lvm2&r1=1.30&r2=1.31 --- LVM2/lib/metadata/metadata.c 2007/06/15 22:16:55 1.118 +++ LVM2/lib/metadata/metadata.c 2007/06/19 00:33:43 1.119 @@ -245,14 +245,13 @@ return 1; } -int vg_extend(struct format_instance *fid, - struct volume_group *vg, int pv_count, char **pv_names) +int vg_extend(struct volume_group *vg, int pv_count, char **pv_names) { int i; /* attach each pv */ for (i = 0; i < pv_count; i++) - if (!_add_pv_to_vg(fid, vg, pv_names[i])) { + if (!_add_pv_to_vg(vg->fid, vg, pv_names[i])) { log_error("Unable to add physical volume '%s' to " "volume group '%s'.", pv_names[i], vg->name); return 0; @@ -352,7 +351,7 @@ } /* attach the pv's */ - if (!vg_extend(vg->fid, vg, pv_count, pv_names)) + if (!vg_extend(vg, pv_count, pv_names)) goto_bad; return vg; --- LVM2/lib/metadata/metadata.h 2007/06/15 22:16:55 1.163 +++ LVM2/lib/metadata/metadata.h 2007/06/19 00:33:43 1.164 @@ -461,8 +461,7 @@ int vg_remove(struct volume_group *vg); int vg_rename(struct cmd_context *cmd, struct volume_group *vg, const char *new_name); -int vg_extend(struct format_instance *fi, struct volume_group *vg, - int pv_count, char **pv_names); +int vg_extend(struct volume_group *vg, int pv_count, char **pv_names); int vg_change_pesize(struct cmd_context *cmd, struct volume_group *vg, uint32_t new_extent_size); int vg_split_mdas(struct cmd_context *cmd, struct volume_group *vg_from, --- LVM2/tools/vgextend.c 2007/06/06 19:40:28 1.30 +++ LVM2/tools/vgextend.c 2007/06/19 00:33:43 1.31 @@ -74,7 +74,7 @@ goto error; /* extend vg */ - if (!vg_extend(vg->fid, vg, argc, argv)) + if (!vg_extend(vg, argc, argv)) goto error; /* ret > 0 */
next reply other threads:[~2007-06-19 0:33 UTC|newest] Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top 2007-06-19 0:33 wysochanski [this message] -- strict thread matches above, loose matches on Subject: below -- 2007-06-19 4:36 wysochanski 2007-06-15 22:16 wysochanski 2007-06-13 19:52 wysochanski 2007-06-12 21:20 wysochanski 2004-05-05 11:04 agk
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=20070619003344.20121.qmail@sourceware.org \ --to=wysochanski@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: linkBe 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).