public inbox for
help / color / mirror / Atom feed
Subject: LVM2/lib/format_text text_label.c
Date: Mon, 28 Jun 2010 20:34:00 -0000	[thread overview]
Message-ID: <> (raw)

CVSROOT:	/cvs/lvm2
Module name:	LVM2
Changes by:	2010-06-28 20:34:24

Modified files:
	lib/format_text: text_label.c 

Log message:
	Implement ignore of mda if bit set by skipping r/w of metadata.
	We implement ignore of an mda at label_read time by checking for
	the ignore bit, and then skipping the reading of the vgname and
	other information in the metadata.  This will have an effect similar
	to a PV found with no mdas.  Thus, it will look like an orphan in the
	cache until we scan the rest of the system and find a PV with
	metadata, and the mda will not be on the vg->fid->metadata_areas
	list so no read/writes will be done to the metadata area.
	Signed-off-by: Dave Wysochanski <>


--- LVM2/lib/format_text/text_label.c	2010/06/28 20:31:18	1.31
+++ LVM2/lib/format_text/text_label.c	2010/06/28 20:34:24	1.32
@@ -311,6 +311,12 @@
 		mda_set_ignored(mda, rlocn_is_ignored(mdah->raw_locns));
+		if (mda_is_ignored(mda)) {
+			if (!dev_close(mdac->
+				stack;
+			continue;
+		}
 		if ((vgname = vgname_from_mda(info->fmt, mdah,
 					      &vgid, &vgstatus, &creation_host,

                 reply	other threads:[~2010-06-28 20:34 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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:

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \ \ \ \ \

* 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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).