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 > Ubuntu > Ubuntu User

 
 
LinkBack Thread Tools
 
Old 12-02-2010, 05:34 PM
David Lehman
 
Default Remove commented out broken code from LoopDevice.status.

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

diff --git a/pyanaconda/storage/devices.py b/pyanaconda/storage/devices.py
index ad07842..8306d9e 100644
--- a/pyanaconda/storage/devices.py
+++ b/pyanaconda/storage/devices.py
@@ -3625,9 +3625,6 @@ class LoopDevice(StorageDevice):

@property
def status(self):
- #return (self.sysfsPath and
- # os.path.isdir("/sys" + self.sysfsPath) and
- # len(os.listdir("/sys" + self.sysfsPath + '/holders')) > 0)
return (self.slave.status and
self.name.startswith("loop") and
loop.get_loop_name(self.slave.path) == self.name)
--
1.7.2.3

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

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