summaryrefslogtreecommitdiff
path: root/lib/format_text/export.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/format_text/export.c')
-rw-r--r--lib/format_text/export.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/lib/format_text/export.c b/lib/format_text/export.c
index c2453f2ba..2c8f5791c 100644
--- a/lib/format_text/export.c
+++ b/lib/format_text/export.c
@@ -410,6 +410,12 @@ static int _print_vg(struct formatter *f, struct volume_group *vg)
if (vg->system_id && *vg->system_id)
outf(f, "system_id = \"%s\"", vg->system_id);
+ if (vg->lock_type) {
+ outf(f, "lock_type = \"%s\"", vg->lock_type);
+ if (vg->lock_args)
+ outf(f, "lock_args = \"%s\"", vg->lock_args);
+ }
+
outsize(f, (uint64_t) vg->extent_size, "extent_size = %u",
vg->extent_size);
outf(f, "max_lv = %u", vg->max_lv);
@@ -624,6 +630,12 @@ static int _print_lv(struct formatter *f, struct logical_volume *lv)
lv->timestamp);
}
+ if (lv->lock_type) {
+ outf(f, "lock_type = \"%s\"", lv->lock_type);
+ if (lv->lock_args)
+ outf(f, "lock_args = \"%s\"", lv->lock_args);
+ }
+
if (lv->alloc != ALLOC_INHERIT)
outf(f, "allocation_policy = \"%s\"",
get_alloc_string(lv->alloc));