* main - vdo: fix conversion of large virtual sizes
@ 2021-08-31 20:06 Zdenek Kabelac
0 siblings, 0 replies; only message in thread
From: Zdenek Kabelac @ 2021-08-31 20:06 UTC (permalink / raw)
To: lvm-devel
Gitweb: https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=4afe872fd6c43fcfcd519c862574d010cdbda653
Commit: 4afe872fd6c43fcfcd519c862574d010cdbda653
Parent: 88360b0c512d96dfe05c11362ff389ef6bfec6b4
Author: Zdenek Kabelac <zkabelac@redhat.com>
AuthorDate: Mon Aug 30 18:12:59 2021 +0200
Committer: Zdenek Kabelac <zkabelac@redhat.com>
CommitterDate: Tue Aug 31 22:05:47 2021 +0200
vdo: fix conversion of large virtual sizes
Properly accept virtual sizes above 2TiB.
---
tools/lvconvert.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tools/lvconvert.c b/tools/lvconvert.c
index 83dfe5c71..d73e16e3a 100644
--- a/tools/lvconvert.c
+++ b/tools/lvconvert.c
@@ -5428,7 +5428,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)))
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2021-08-31 20:06 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-08-31 20:06 main - vdo: fix conversion of large virtual sizes Zdenek Kabelac
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.