summaryrefslogtreecommitdiffstats
path: root/lib/format_pool
diff options
context:
space:
mode:
authorDave Wysochanski <dwysocha@redhat.com>2010-07-08 18:24:29 +0000
committerDave Wysochanski <dwysocha@redhat.com>2010-07-08 18:24:29 +0000
commita5fb2bbff3e0fca37a71a50c2f36cb4268e64509 (patch)
treeeee20cdd9b1f51c223fc2bba3dbe91ae74cb6100 /lib/format_pool
parentdce204cec54c827f955a78affa76f1d404a8a9d4 (diff)
downloadlvm2-a5fb2bbff3e0fca37a71a50c2f36cb4268e64509.tar.gz
lvm2-a5fb2bbff3e0fca37a71a50c2f36cb4268e64509.tar.xz
lvm2-a5fb2bbff3e0fca37a71a50c2f36cb4268e64509.zip
Pass metadataignore to pv_create, pv_setup, _mda_setup, and add_mda.
Pass metadataignore through PV creation / setup paths. As a result of this cleanup, we can remove the unnecessary setting of mda_ignore bits inside pvcreate_single(), after call to pv_create. For now, just set metadataignore to '0' in some places. This is equivalent to the prior functionality, although the 0 is given by the caller not hardcoded in _mda_setup() call. Signed-off-by: Dave Wysochanski <dwysocha@redhat.com>
Diffstat (limited to 'lib/format_pool')
-rw-r--r--lib/format_pool/format_pool.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/format_pool/format_pool.c b/lib/format_pool/format_pool.c
index 32b8f4ed..a0eb8278 100644
--- a/lib/format_pool/format_pool.c
+++ b/lib/format_pool/format_pool.c
@@ -196,6 +196,7 @@ static int _pool_pv_setup(const struct format_type *fmt __attribute((unused)),
unsigned long data_alignment_offset __attribute((unused)),
int pvmetadatacopies __attribute((unused)),
uint64_t pvmetadatasize __attribute((unused)),
+ unsigned metadataignore __attribute((unused)),
struct dm_list *mdas __attribute((unused)),
struct physical_volume *pv __attribute((unused)),
struct volume_group *vg __attribute((unused)))