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 Kernel

 
 
LinkBack Thread Tools
 
Old 09-16-2011, 05:24 PM
David Lehman
 
Default Fix post-commit lookup of extended partitions. (#737532)

Commit 7ccd9ce9d6a907c switched to doing these lookups by sector,
but did not take into account the fact that lookups by sector do
not work for extended partitions. Another reason to love msdos
labels.
---
pyanaconda/storage/devices.py | 10 ++++++++--
1 files changed, 8 insertions(+), 2 deletions(-)

diff --git a/pyanaconda/storage/devices.py b/pyanaconda/storage/devices.py
index 9aa77a6..a52e464 100644
--- a/pyanaconda/storage/devices.py
+++ b/pyanaconda/storage/devices.py
@@ -1484,8 +1484,14 @@ class PartitionDevice(StorageDevice):
raise

def _postCreate(self):
- start = self.partedPartition.geometry.start
- partition = self.disk.format.partedDisk.getPartitionBySector(s tart)
+ if self.isExtended:
+ partition = self.disk.format.extendedPartition
+ else:
+ start = self.partedPartition.geometry.start
+ partition = self.disk.format.partedDisk.getPartitionBySector(s tart)
+
+ log.debug("post-commit partition path is %s" % getattr(partition,
+ "path", None))
self.partedPartition = partition
if not self.isExtended:
# Ensure old metadata which lived in freespace so did not get
--
1.7.3.4

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list
 
Old 09-16-2011, 09:39 PM
Chris Lumens
 
Default Fix post-commit lookup of extended partitions. (#737532)

> Commit 7ccd9ce9d6a907c switched to doing these lookups by sector,
> but did not take into account the fact that lookups by sector do
> not work for extended partitions. Another reason to love msdos
> labels.

Looks fine.

- Chris

_______________________________________________
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 02:27 AM.

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