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