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 User

 
 
LinkBack Thread Tools
 
Old 02-17-2012, 12:33 PM
Vratislav Podzimek
 
Default Correctly handle reqs with max size no larger than base size.

Related: rhbz#744129

(ported e1c654bb0e54f6f5b8d4d3c63bb5a6cacd2f3ff7 from master)
The original patch resolved #730009.
---
storage/partitioning.py | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/storage/partitioning.py b/storage/partitioning.py
index b9ab4c2..1923596 100644
--- a/storage/partitioning.py
+++ b/storage/partitioning.py
@@ -1257,6 +1257,9 @@ class Request(object):
if limits:
max_sectors = min(limits)
self.max_growth = max_sectors - self.base
+ if self.max_growth <= 0:
+ # max size is less than or equal to base, so we're done
+ self.done = True

@property
def growable(self):
--
1.7.4.4

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list
 
Old 02-24-2012, 10:15 AM
Vratislav Podzimek
 
Default Correctly handle reqs with max size no larger than base size.

Related: rhbz#744129

(ported e1c654bb0e54f6f5b8d4d3c63bb5a6cacd2f3ff7 from master)
The original patch resolved #730009.
---
storage/partitioning.py | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/storage/partitioning.py b/storage/partitioning.py
index a6a5f81..42f9a0c 100644
--- a/storage/partitioning.py
+++ b/storage/partitioning.py
@@ -1260,6 +1260,9 @@ class Request(object):
if limits:
max_sectors = min(limits)
self.max_growth = max_sectors - self.base
+ if self.max_growth <= 0:
+ # max size is less than or equal to base, so we're done
+ self.done = True

@property
def growable(self):
--
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 05:46 AM.

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