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 format1/format1.c format_pool/format_ ... Date: Tue, 29 Jun 2010 14:52:00 -0000 [thread overview] Message-ID: <20100629145258.26298.qmail@sourceware.org> (raw) CVSROOT: /cvs/lvm2 Module name: LVM2 Changes by: wysochanski@sourceware.org 2010-06-29 14:52:57 Modified files: lib/format1 : format1.c lib/format_pool: format_pool.c lib/format_text: format-text.c Log message: Add more initializations of 'mda->flags' field. Mda allocation needs refactored into a single function but as an interim step, ensure mda->flags is initialized properly. Patches: http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/lib/format1/format1.c.diff?cvsroot=lvm2&r1=1.118&r2=1.119 http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/lib/format_pool/format_pool.c.diff?cvsroot=lvm2&r1=1.29&r2=1.30 http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/lib/format_text/format-text.c.diff?cvsroot=lvm2&r1=1.134&r2=1.135 --- LVM2/lib/format1/format1.c 2010/06/28 20:33:22 1.118 +++ LVM2/lib/format1/format1.c 2010/06/29 14:52:56 1.119 @@ -467,13 +467,14 @@ dm_list_init(&fid->metadata_areas_ignored); /* Define a NULL metadata area */ - if (!(mda = dm_pool_alloc(fmt->cmd->mem, sizeof(*mda)))) { + if (!(mda = dm_pool_zalloc(fmt->cmd->mem, sizeof(*mda)))) { dm_pool_free(fmt->cmd->mem, fid); return_NULL; } mda->ops = &_metadata_format1_ops; mda->metadata_locn = NULL; + mda->flags = 0; dm_list_add(&fid->metadata_areas_in_use, &mda->list); return fid; --- LVM2/lib/format_pool/format_pool.c 2010/06/28 20:33:23 1.29 +++ LVM2/lib/format_pool/format_pool.c 2010/06/29 14:52:56 1.30 @@ -275,6 +275,7 @@ mda->ops = &_metadata_format_pool_ops; mda->metadata_locn = NULL; + mda->flags = 0; dm_list_add(&fid->metadata_areas_in_use, &mda->list); return fid; --- LVM2/lib/format_text/format-text.c 2010/06/29 13:29:53 1.134 +++ LVM2/lib/format_text/format-text.c 2010/06/29 14:52:57 1.135 @@ -1923,6 +1923,7 @@ return_NULL; mda->ops = &_metadata_text_file_backup_ops; mda->metadata_locn = context; + mda->flags = 0; fid_add_mda(fid, mda); } else { dir_list = &((struct mda_lists *) fmt->private)->dirs; @@ -1940,6 +1941,7 @@ return_NULL; mda->ops = &_metadata_text_file_ops; mda->metadata_locn = context; + mda->flags = 0; fid_add_mda(fid, mda); } @@ -1959,6 +1961,7 @@ /* FIXME Allow multiple dev_areas inside area */ memcpy(&mdac->area, &rl->dev_area, sizeof(mdac->area)); mda->ops = &_metadata_text_raw_ops; + mda->flags = 0; /* FIXME MISTAKE? mda->metadata_locn = context; */ fid_add_mda(fid, mda); }
next reply other threads:[~2010-06-29 14:52 UTC|newest] Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top 2010-06-29 14:52 wysochanski [this message] -- strict thread matches above, loose matches on Subject: below -- 2012-02-15 1:44 mornfall 2011-02-21 12:20 prajnoha 2011-02-21 12:05 prajnoha 2010-06-28 20:33 wysochanski 2009-07-27 17:43 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=20100629145258.26298.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).