summaryrefslogtreecommitdiff
path: root/lib/format1/import-extents.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/format1/import-extents.c')
-rw-r--r--lib/format1/import-extents.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/format1/import-extents.c b/lib/format1/import-extents.c
index 3fd251a5f..2829c4197 100644
--- a/lib/format1/import-extents.c
+++ b/lib/format1/import-extents.c
@@ -226,7 +226,7 @@ static int _read_linear(struct cmd_context *cmd, struct lv_map *lvm)
len = _area_length(lvm, le);
if (!(seg = alloc_lv_segment(segtype, lvm->lv, le, len, 0, 0, 0,
- NULL, 1, len, 0, 0, 0, NULL))) {
+ NULL, 1, len, 1, 0, 0, 0, NULL))) {
log_error("Failed to allocate linear segment.");
return 0;
}
@@ -300,7 +300,7 @@ static int _read_stripes(struct cmd_context *cmd, struct lv_map *lvm)
lvm->stripes * area_len,
0, 0, lvm->stripe_size, NULL,
lvm->stripes,
- area_len, 0, 0, 0, NULL))) {
+ area_len, 1, 0, 0, 0, NULL))) {
log_error("Failed to allocate striped segment.");
return 0;
}