]> sourceware.org Git - lvm2.git/commit
Make vg->mda_copies persistent in on disk vg metadata.
authorDave Wysochanski <dwysocha@redhat.com>
Mon, 28 Jun 2010 20:37:10 +0000 (20:37 +0000)
committerDave Wysochanski <dwysocha@redhat.com>
Mon, 28 Jun 2010 20:37:10 +0000 (20:37 +0000)
commit7042e06a2aa4b93b9e942996b78b2dd52e3cabe7
tree8954c8f9fc911631bf6d0602aa147b3c4a12c5b1
parent821f0cc5ea6fe45832fd858025a37643ae8b01d4
Make vg->mda_copies persistent in on disk vg metadata.

This patch adds the ability to read/write the vg->mda_copies values
from/to the vg metadata.

If we read the VG metadata and this field does not exist, we set
mda_copies to the default value of 0.  Later in the code, we use
this special '0' value to indicate a disable of metadata balancing.
This should preserve existing LVM behavior and ensure metadata balancing
can be turned off should the need arise.

Signed-off-by: Dave Wysochanski <dwysocha@redhat.com>
lib/format_text/export.c
lib/format_text/import_vsn1.c
This page took 0.039502 seconds and 5 git commands to generate.