[PATCH 4/5] Limit the size of swap partitions

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Resolves: rhbz#744129
---
 storage/formats/swap.py |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/storage/formats/swap.py b/storage/formats/swap.py
index 362f6d5..824c501 100644
--- a/storage/formats/swap.py
+++ b/storage/formats/swap.py
@@ -26,6 +26,7 @@ from ..storage_log import log_method_call
 from ..errors import *
 from ..devicelibs import swap
 from . import DeviceFormat, register_device_format
+from constants import *
 
 import gettext
 _ = lambda x: gettext.ldgettext("anaconda", x)
@@ -44,6 +45,7 @@ class SwapSpace(DeviceFormat):
     _formattable = True                # can be formatted
     _supported = True                  # is supported
     _linuxNative = True                # for clearpart
+    _maxSize = SWAP_SIZE_LIMIT
 
     def __init__(self, *args, **kwargs):
         """ Create a SwapSpace instance.
-- 
1.7.4.4

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list


[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux