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 > CentOS > CentOS

 
 
LinkBack Thread Tools
 
Old 12-18-2009, 07:57 PM
David Lehman
 
Default Use the per-disk flag to disable cylinder alignment for msdos disklabels.

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

diff --git a/storage/partitioning.py b/storage/partitioning.py
index 5d176c4..97abf83 100644
--- a/storage/partitioning.py
+++ b/storage/partitioning.py
@@ -776,8 +776,9 @@ def doPartitioning(storage, exclusiveDisks=None):
bootDev.req_bootable = True

# turn off cylinder alignment
- if parted.isAlignToCylinders():
- parted.toggleAlignToCylinders()
+ for partedDisk in [d.format.partedDisk for d in disks]:
+ if partedDisk.isFlagAvailable(parted.DISK_CYLINDER_AL IGNMENT):
+ partedDisk.unsetFlag(parted.DISK_CYLINDER_ALIGNMEN T)

removeNewPartitions(disks, partitions)
free = getFreeRegions(disks)
--
1.6.5.2

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

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