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 > 64 Studio > 64 Studio User

 
 
LinkBack Thread Tools
 
Old 10-29-2009, 02:58 PM
Chris Lumens
 
Default Take the spec's requiredSpace into account when creating LVs.

This allows us to disregard certain requests when there's not enough
space in the VG for the request to make any sense.
---
storage/partitioning.py | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/storage/partitioning.py b/storage/partitioning.py
index 1e2ee40..f785b0e 100644
--- a/storage/partitioning.py
+++ b/storage/partitioning.py
@@ -129,6 +129,8 @@ def _scheduleLVs(anaconda, devs):
vg = anaconda.id.storage.newVG(pvs=pvs)
anaconda.id.storage.createDevice(vg)

+ initialVGSize = vg.size
+
#
# Convert storage.autoPartitionRequests into Device instances and
# schedule them for creation.
@@ -138,6 +140,9 @@ def _scheduleLVs(anaconda, devs):
if not request.asVol:
continue

+ if request.requiredSpace and request.requiredSpace > initialVGSize:
+ continue
+
if request.fstype is None:
request.fstype = anaconda.id.storage.defaultFSType

--
1.6.5.1

_______________________________________________
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 09:24 PM.

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