33 lines
1.2 KiB
Diff
33 lines
1.2 KiB
Diff
From 5ace424b75538b3a5f8b06536c6de38a91d749ff Mon Sep 17 00:00:00 2001
|
|
Message-Id: <5ace424b75538b3a5f8b06536c6de38a91d749ff@dist-git>
|
|
From: Pavel Hrdina <phrdina@redhat.com>
|
|
Date: Thu, 10 Jan 2019 12:58:43 -0500
|
|
Subject: [PATCH] diskbackend: Fix backtrace cloning with block storage (bz
|
|
#1661986)
|
|
|
|
From: Cole Robinson <crobinso@redhat.com>
|
|
|
|
https://bugzilla.redhat.com/show_bug.cgi?id=1661986
|
|
(cherry picked from commit 722886748006b880ff6a99781b2aca0751aafc55)
|
|
Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
|
|
---
|
|
virtinst/diskbackend.py | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/virtinst/diskbackend.py b/virtinst/diskbackend.py
|
|
index b9340585..3366e88d 100644
|
|
--- a/virtinst/diskbackend.py
|
|
+++ b/virtinst/diskbackend.py
|
|
@@ -530,7 +530,7 @@ class CloneStorageCreator(_StorageCreator):
|
|
else:
|
|
vfs = os.statvfs(os.path.dirname(self._path))
|
|
avail = vfs.f_frsize * vfs.f_bavail
|
|
- need = int(self._size) * 1024 * 1024 * 1024
|
|
+ need = int(self._size) * 1024 * 1024 * 1024
|
|
if need > avail:
|
|
if self._sparse:
|
|
msg = _("The filesystem will not have enough free space"
|
|
--
|
|
2.20.1
|
|
|