[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[PATCH 05/15] Remove PartitionDevice.path hack.



This was put in place for fear that non-existent partitions might cause
multiple PartitionDevice instances to have the same value for their path
property. The one thing is certainly does is make it so that non-existent
partitions' path is not actually a path, which means we've chosen the wrong
way around some other problem.
---
 pyanaconda/storage/devices.py |   10 ----------
 1 files changed, 0 insertions(+), 10 deletions(-)

diff --git a/pyanaconda/storage/devices.py b/pyanaconda/storage/devices.py
index ffc46e3..5bedfd4 100644
--- a/pyanaconda/storage/devices.py
+++ b/pyanaconda/storage/devices.py
@@ -1081,16 +1081,6 @@ class PartitionDevice(StorageDevice):
                                       start=geometry.start, end=geometry.end)
 
     @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
-
-        return "%s/%s" % (self.parents[0]._devDir, self.name)
-
-    @property
     def partType(self):
         """ Get the partition's type (as parted constant). """
         try:
-- 
1.7.2.3


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]