FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Debian > Debian GCC

 
 
LinkBack Thread Tools
 
Old 02-24-2012, 10:15 AM
Vratislav Podzimek
 
Default Limit the size of swap partitions

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@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list
 
Old 04-20-2012, 11:48 AM
Vratislav Podzimek
 
Default Limit the size of swap partitions

see rhbz#744129 and rhbz#587152

(ported 35679a70eab52b3b040a61fce9d0e43dbb977c98 from rhel6-branch)
---
pyanaconda/storage/formats/swap.py | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/pyanaconda/storage/formats/swap.py b/pyanaconda/storage/formats/swap.py
index 860a551..79dc6f2 100644
--- a/pyanaconda/storage/formats/swap.py
+++ b/pyanaconda/storage/formats/swap.py
@@ -44,6 +44,7 @@ class SwapSpace(DeviceFormat):
_formattable = True # can be formatted
_supported = True # is supported
_linuxNative = True # for clearpart
+ _maxSize = swap.SWAP_SIZE_LIMIT

def __init__(self, *args, **kwargs):
""" Create a SwapSpace instance.
--
1.7.4.4

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

Thread Tools




All times are GMT. The time now is 03:28 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org