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 11-24-2010, 06:40 PM
"Brian C. Lane"
 
Default Handle dm-N devices pointed to by /dev/disk/ paths (#605312)

Related: rhbz#605312
---
storage/devicetree.py | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/storage/devicetree.py b/storage/devicetree.py
index 728191e..f4e960d 100644
--- a/storage/devicetree.py
+++ b/storage/devicetree.py
@@ -2307,6 +2307,11 @@ class DeviceTree(object):
if devspec.startswith("/dev/disk/"):
devspec = os.path.realpath(devspec)

+ if devspec.startswith("/dev/dm-"):
+ dm_name = devicelibs.dm.name_from_dm_node(devspec[5:])
+ if dm_name:
+ devspec = "/dev/mapper/" + dm_name
+
# device path
device = self.getDeviceByPath(devspec)
if device is None:
--
1.7.3.2

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

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