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 > ArchLinux > ArchLinux Development

 
 
LinkBack Thread Tools
 
Old 11-11-2009, 07:44 AM
Ales Kozumplik
 
Default Fixes a bug in DmDriveCache.rename: before the method passed a drive name with 'mapper/' prepended.

Prepending 'mapper/' incorrectly modifies the name, 'mapper/' is be prepended by DmDriveCache.remove() internally.
---
dmraid.py | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/dmraid.py b/dmraid.py
index 4fb7129..ed05341 100644
--- a/dmraid.py
+++ b/dmraid.py
@@ -82,7 +82,7 @@ class DmDriveCache:
if self.cache.has_key(obj.name):
del self.cache[obj.name][obj.name]
for k,v in self.cache[obj.name].items():
- log.debug("adding %s to isys cache" % (name,))
+ log.debug("adding %s to isys cache" % (k,))
isys.cachedDrives[k] = v
log.debug("removing %s from dm cache" % (obj,))
del self.cache[obj.name]
@@ -91,7 +91,7 @@ class DmDriveCache:
oldname = 'mapper/' + obj.name
if isys.cachedDrives.has_key(oldname):
dmNameUpdates[obj.name] = newname
- self.remove(oldname)
+ self.remove(obj.name)
# XXX why doesn't setting the property work?
obj.set_name(newname)
self.add(obj)
--
1.6.2.5

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

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