29 lines
905 B
Diff
29 lines
905 B
Diff
From 70467e905cea0811c269faf7e84f24d4e1c758cc Mon Sep 17 00:00:00 2001
|
|
From: Zdenek Kabelac <zkabelac@redhat.com>
|
|
Date: Mon, 30 Aug 2021 18:12:59 +0200
|
|
Subject: [PATCH 5/5] vdo: fix conversion of large virtual sizes
|
|
|
|
Properly accept virtual sizes above 2TiB.
|
|
|
|
(cherry picked from commit 4afe872fd6c43fcfcd519c862574d010cdbda653)
|
|
---
|
|
tools/lvconvert.c | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/tools/lvconvert.c b/tools/lvconvert.c
|
|
index f87ee78..518b48f 100644
|
|
--- a/tools/lvconvert.c
|
|
+++ b/tools/lvconvert.c
|
|
@@ -5462,7 +5462,7 @@ static int _lvconvert_to_vdopool_single(struct cmd_context *cmd,
|
|
return_0;
|
|
|
|
lvc.virtual_extents = extents_from_size(cmd,
|
|
- arg_uint_value(cmd, virtualsize_ARG, 0),
|
|
+ arg_uint64_value(cmd, virtualsize_ARG, UINT64_C(0)),
|
|
vg->extent_size);
|
|
|
|
if (!(lvc.segtype = get_segtype_from_string(cmd, SEG_TYPE_NAME_VDO)))
|
|
--
|
|
1.8.3.1
|
|
|