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 12-01-2010, 02:14 PM
Chris Lumens
 
Default Fix PartitionDevice.path to work with device-mapper disks.

> pyanaconda/storage/devices.py | 9 +++++++++
> 1 files changed, 9 insertions(+), 0 deletions(-)

This one looks fine too.

- Chris

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list
 
Old 09-13-2011, 12:15 PM
Ales Kozumplik
 
Default Fix PartitionDevice.path to work with device-mapper disks.

From: David Lehman <dlehman@redhat.com>

cherry-pick of 54feaeabf579fbf5b8ec5b1c85509b0a0a1e22ba

Related: rhbz#731973
---
storage/devices.py | 9 ++++-----
1 files changed, 4 insertions(+), 5 deletions(-)

diff --git a/storage/devices.py b/storage/devices.py
index 72d6c61..87d0699 100644
--- a/storage/devices.py
+++ b/storage/devices.py
@@ -1105,13 +1105,12 @@ class PartitionDevice(StorageDevice):

@property
def path(self):
- """ Device node representing this device. """
if not self.parents:
- # Bogus, but code in various places compares devices by path
- # So we must return something unique
- return self.name
+ devDir = StorageDevice._devDir
+ else:
+ devDir = self.parents[0]._devDir

- return "%s/%s" % (self.parents[0]._devDir, self.name)
+ return "%s/%s" % (devDir, self.name)

@property
def partType(self):
--
1.7.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 02:11 AM.

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