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/format_text format-text.c text_label.c Date: Mon, 28 Jun 2010 20:31:00 -0000 [thread overview] Message-ID: <20100628203118.13982.qmail@sourceware.org> (raw) CVSROOT: /cvs/lvm2 Module name: LVM2 Changes by: wysochanski@sourceware.org 2010-06-28 20:31:18 Modified files: lib/format_text: format-text.c text_label.c Log message: Ensure in-memory state matches on-disk state of mda ignore bit. Signed-off-by: Dave Wysochanski <dwysocha@redhat.com> Patches: http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/lib/format_text/format-text.c.diff?cvsroot=lvm2&r1=1.127&r2=1.128 http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/lib/format_text/text_label.c.diff?cvsroot=lvm2&r1=1.30&r2=1.31 --- LVM2/lib/format_text/format-text.c 2010/06/28 20:31:01 1.127 +++ LVM2/lib/format_text/format-text.c 2010/06/28 20:31:18 1.128 @@ -726,6 +726,7 @@ "header at %" PRIu64, vg->name, dev_name(mdac->area.dev), mdac->area.start); + rlocn_set_ignored(mdah->raw_locns, mda_is_ignored(mda)); if (!_raw_write_mda_header(fid->fmt, mdac->area.dev, mdac->area.start, mdah)) { dm_pool_free(fid->fmt->cmd->mem, mdah); @@ -808,6 +809,7 @@ rlocn->offset = 0; rlocn->size = 0; rlocn->checksum = 0; + rlocn_set_ignored(mdah->raw_locns, mda_is_ignored(mda)); if (!_raw_write_mda_header(fid->fmt, mdac->area.dev, mdac->area.start, mdah)) { @@ -1513,6 +1515,7 @@ mdac = mda->metadata_locn; memset(&buf, 0, sizeof(buf)); mdah->size = mdac->area.size; + rlocn_set_ignored(mdah->raw_locns, mda_is_ignored(mda)); if (!_raw_write_mda_header(fmt, mdac->area.dev, mdac->area.start, mdah)) { if (!dev_close(pv->dev)) --- LVM2/lib/format_text/text_label.c 2010/06/28 20:31:01 1.30 +++ LVM2/lib/format_text/text_label.c 2010/06/28 20:31:18 1.31 @@ -301,6 +301,7 @@ dm_list_iterate_items(mda, &info->mdas) { mdac = (struct mda_context *) mda->metadata_locn; if (!dev_open(mdac->area.dev)) { + mda_set_ignored(mda, 1); stack; continue; } @@ -308,6 +309,7 @@ stack; goto close_dev; } + mda_set_ignored(mda, rlocn_is_ignored(mdah->raw_locns)); if ((vgname = vgname_from_mda(info->fmt, mdah, &mdac->area,
next reply other threads:[~2010-06-28 20:31 UTC|newest] Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top 2010-06-28 20:31 wysochanski [this message] -- strict thread matches above, loose matches on Subject: below -- 2010-06-28 20:30 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=20100628203118.13982.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).