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 Development

 
 
LinkBack Thread Tools
 
Old 06-24-2010, 06:34 PM
David Lehman
 
Default Autopart PVs require enough space for a default-sized partition.

When identifying disks that will contain autopart PVs we are only
checking that each disk contain at least 100MB of contiguous free
space, but then we are allocating partitions with a base size of
500MB for the PVs. Hook both pieces to the same source to prevent
confusion.

Note that we can still get caught in many cases, eg: 900MB of free
space on the device /boot will be allocated from. We detect 900MB of
free space, so we mark it for a new PV. We allocate /boot, and then
don't have enough space left to allocate the PV.
---
pyanaconda/storage/partitioning.py | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/pyanaconda/storage/partitioning.py b/pyanaconda/storage/partitioning.py
index 61f03ae..0530163 100644
--- a/pyanaconda/storage/partitioning.py
+++ b/pyanaconda/storage/partitioning.py
@@ -42,7 +42,7 @@ log = logging.getLogger("storage")

def _createFreeSpacePartitions(anaconda):
# get a list of disks that have at least one free space region of at
- # least 100MB
+ # least the default size for new partitions
disks = []
for disk in anaconda.storage.partitioned:
if anaconda.storage.clearPartDisks and
@@ -55,7 +55,7 @@ def _createFreeSpacePartitions(anaconda):
part = part.nextPartition()
continue

- if part.getSize(unit="MB") > 100:
+ if part.getSize(unit="MB") > PartitionDevice.defaultSize:
disks.append(disk)
break

--
1.6.6.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:51 PM.

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