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