]> sourceware.org Git - lvm2.git/commit
Allow raw_read_mda_header to be called from text_label.c.
authorDave Wysochanski <dwysocha@redhat.com>
Mon, 28 Jun 2010 20:31:01 +0000 (20:31 +0000)
committerDave Wysochanski <dwysocha@redhat.com>
Mon, 28 Jun 2010 20:31:01 +0000 (20:31 +0000)
commit09e0f43ba06c89e8f26b8059c2644d5682be35bd
tree04a0edeec4ae02be0d45caf1f6e65a1f305d0a6f
parentda0b4d8770f6ea871d2345575d9e27a6ed1105fb
Allow raw_read_mda_header to be called from text_label.c.

We'd like to pass in mda_header to vgname_from_mda().  In order to
do this, we need to call raw_read_mda_header() from text_label.c,
_text_read(), which gets called from the label_read() path, and
peers into the metadata and update vginfo cache.  We should check
the disable bit here, and if set, not peer into the vg metadata,
thus reducing the I/O to disk.

In the process, move vgname_from_mda() to layout.h, since the fn
only gets called from format_text code, and we need the mda_header
definition from the private layout.h.

Signed-off-by: Dave Wysochanski <dwysocha@redhat.com>
lib/format_text/format-text.c
lib/format_text/format-text.h
lib/format_text/layout.h
lib/format_text/text_label.c
This page took 0.077258 seconds and 5 git commands to generate.