summaryrefslogtreecommitdiff
path: root/lib/format_text/archiver.c
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_text/archiver.c
parentdce204cec54c827f955a78affa76f1d404a8a9d4 (diff)
downloadlvm2-a5fb2bbff3e0fca37a71a50c2f36cb4268e64509.tar.gz
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_text/archiver.c')
-rw-r--r--lib/format_text/archiver.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/format_text/archiver.c b/lib/format_text/archiver.c
index e45d9d217..d8272046d 100644
--- a/lib/format_text/archiver.c
+++ b/lib/format_text/archiver.c
@@ -327,7 +327,8 @@ int backup_restore_vg(struct cmd_context *cmd, struct volume_group *vg)
}
if (!vg->fid->fmt->ops->
pv_setup(vg->fid->fmt, UINT64_C(0), 0, 0, 0, 0, 0UL,
- UINT64_C(0), &vg->fid->metadata_areas_in_use, pv, vg)) {
+ UINT64_C(0), 0,
+ &vg->fid->metadata_areas_in_use, pv, vg)) {
log_error("Format-specific setup for %s failed",
pv_dev_name(pv));
return 0;