summaryrefslogtreecommitdiffstats
path: root/storage/devicelibs/dm.py
Commit message (Collapse)AuthorAgeFilesLines
* Fix devicelibs.dm.device_is_multipath support for new udev rules.Peter Jones2009-11-301-1/+16
| | | | | | | | | | New udev rules for DM stuff use 'MAJOR' and 'MINOR' instead of 'DM_MAJOR' and 'DM_MINOR', so we need devicelibs.dm.device_is_multipath() to check for them instead. For now, this code will work with either variety. This also makes devicelibs.dm.device_is_multipath() take the whole info blob and do what it needs with it, rather than splitting it up in the calling function.
* Recognize mpath devices when we see them.Peter Jones2009-08-061-0/+8
| | | | | This identifies that a device is part of a multipath, and builds an mpath device for partitioning.
* Use the pyblock functions when possible.Joel Granados Moreno2009-03-101-0/+9
| | | | | | | | | | | * storage/devicelibs/dm.py : For each function that is used in the storage code, we try to use pyblock first. We fail to calling dmsetup. * storage/devices.py : Erased the commented line that had the pyblock call. We are doing all the pyblock calls from storage/devicelibs/dm.py. * storage/devicetree.py : likewise. * storage/formats/dmraid.py : likewise.
* Lots of minor fixes and cleanups. A non-exhaustive list follows.David Lehman2009-02-271-3/+3
| | | | | | | | | | | - Change minsize/maxsize to minSize/maxSize since that's the convention elsewhere throughout the code. - Redirect output from all external utilities to tty5, not /dev/null. - Don't waste calls to basename for debug log statements, especially when the device can be None. - Add lots of missing imports. - Fix lots of remnants of previous code usage.
* Clean up imports, add header blocks as needed.David Lehman2009-02-231-1/+22
|
* Replace old storage modules.David Lehman2009-02-231-0/+77