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 Java

 
 
LinkBack Thread Tools
 
Old 02-22-2010, 07:42 PM
David Lehman
 
Default Don't align free space geometries in getFreeRegions. (#565692)

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

diff --git a/storage/partitioning.py b/storage/partitioning.py
index 70cd75d..00e655f 100644
--- a/storage/partitioning.py
+++ b/storage/partitioning.py
@@ -723,31 +723,12 @@ def getFreeRegions(disks):

disks -- list of parted.Disk instances

- Return value is a list of aligned parted.Geometry instances.
+ Return value is a list of unaligned parted.Geometry instances.

"""
free = []
for disk in disks:
for f in disk.format.partedDisk.getFreeSpaceRegions():
- # device alignment fixups
- if not disk.format.alignment.isAligned(f, f.start):
- try:
- f.start = disk.format.alignment.alignNearest(f, f.start)
- except ArithmeticError, e:
- # This happens when the free region is too small to create
- # an aligned partition in it, ie the freespace between the
- # mbr and the first aligned partition
- continue
-
- if not disk.format.endAlignment.isAligned(f, f.end):
- try:
- f.end = disk.format.endAlignment.alignNearest(f, f.end)
- except ArithmeticError, e:
- # This happens when the free region is too small to create
- # an aligned partition in it, ie the freespace after the
- # last aligned partition
- continue
-
if f.length > 0:
free.append(f)

--
1.6.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 01:24 PM.

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