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

Re: [PATCH] Use a different method to get the sysfs_path for device-mapper devices (#665643).



> > Since self.device is a full path this will never work -- just pass
> > self.device's basename.
> 
> If I were less lazy, I'd attach a screenshot here showing you that it
> did, in fact, work.

By which I mean:

clumens exeter:~/src$ sudo PATH=/sbin:/usr/sbin:/bin:/usr/bin ipython
...
In [2]: import pyanaconda.anaconda_log

In [3]: pyanaconda.anaconda_log.init()

In [4]: from pyanaconda.storage.devicelibs.dm import dm_node_from_name

In [5]: dm_node_from_name("/dev/mapper/VolGroup00-LogVol00")
Out[5]: 'dm-0'

- Chris


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