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 > Redhat > Fedora Infrastructure

 
 
LinkBack Thread Tools
 
Old 11-11-2009, 07:53 PM
David Lehman
 
Default Handle case of not enough space in VG more gracefully. (#533797)

---
storage/partitioning.py | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/storage/partitioning.py b/storage/partitioning.py
index dff8804..a23efb3 100644
--- a/storage/partitioning.py
+++ b/storage/partitioning.py
@@ -1510,7 +1510,11 @@ def growLVM(storage):
""" Grow LVs according to the sizes of the PVs. """
for vg in storage.vgs:
total_free = vg.freeSpace
- if not total_free:
+ if total_free < 0:
+ # by now we have allocated the PVs so if there isn't enough
+ # space in the VG we have a real problem
+ raise PartitioningError("not enough space for LVM requests")
+ elif not total_free:
log.debug("vg %s has no free space" % vg.name)
continue

--
1.6.0.6

_______________________________________________
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 07:50 PM.

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