[f22-branch 1/2] Change XFS' and BTRFS' max size limits (#1200812)

vpodzime installerbot-noreply at redhat.com
Tue Mar 17 08:36:55 UTC 2015


From: Vratislav Podzimek <vpodzime at redhat.com>

Tools and libraries outside of python have troubles working with 16 EiB which is
bigger than the maximum value of 64bit unsigned integer type. Since these are
really theoretical values far from what's actually available as today's HW, we
can safely lower these limits by 1 EiB.
---
 blivet/formats/fs.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/blivet/formats/fs.py b/blivet/formats/fs.py
index 491a4f2..33b7a6e 100644
--- a/blivet/formats/fs.py
+++ b/blivet/formats/fs.py
@@ -1115,7 +1115,7 @@ class BTRFS(FS):
     _supported = True
     _packages = ["btrfs-progs"]
     _minSize = Size("256 MiB")
-    _maxSize = Size("16 EiB")
+    _maxSize = Size("15 EiB")
     # FIXME parted needs to be taught about btrfs so that we can set the
     # partition table type correctly for btrfs partitions
     # partedSystem = fileSystemType["btrfs"]
@@ -1254,7 +1254,7 @@ class XFS(FS):
     _modules = ["xfs"]
     _labelfs = fslabeling.XFSLabeling()
     _defaultFormatOptions = ["-f"]
-    _maxSize = Size("16 EiB")
+    _maxSize = Size("15 EiB")
     _formattable = True
     _linuxNative = True
     _supported = True


-- 
To view this commit on github, visit https://github.com/rhinstaller/blivet/commit/552a95341ef1ee3b5c59c14dde466f137c53e6e1


More information about the anaconda-patches mailing list