summaryrefslogtreecommitdiffstats
path: root/storage/devicelibs/swap.py
Commit message (Collapse)AuthorAgeFilesLines
* Check for the real device-mapper nodes in /proc/swaps. (#567840)David Lehman2010-02-251-2/+13
|
* iutil.execWithRedirect() hasn't used searchPath= since 2006. Take it out.Peter Jones2010-01-151-4/+2
| | | | | iutil.execWithRedirect() stopped doing anything with searchPath in 2006 when clumens committed d0dec24. Remove these silly vestigal bits.
* Add optional progress windows to devicelibs create functions.David Lehman2009-11-301-5/+5
|
* Force mkswap to do its job.David Lehman2009-11-301-1/+3
| | | | | | There's some broken hueristic in mkswap that leads it to sometimes mistake a logical volume for a disk and hence refuse to format it, citing something about bootblocks. Nonsense.
* Raise exception if detected swap volumes are not Linux v1 swap space.David Cantrell2009-09-071-0/+5
| | | | | | | Safety net for detected swap volumes. We trap v0 swap space and swap partitions currently in use for software suspend. After all that verify that the detected volume is v1 swap space. If not, raise UnknownSwapError.
* Fixes of errors shown by pylint that didn't get into the beta build.Martin Gracik2009-03-311-2/+3
|
* Code fixes of errors shown by pylint (mgracik).Chris Lumens2009-03-251-1/+1
| | | | | | This only fixes the serious errors that may affect F11 Beta. There's still a lot of patch left that fixes some more nitpicky stuff which can come in later.
* Added unittests for devicelibs lvm.py and swap.py; Corrected errors in ↵Martin Gracik2009-03-041-2/+2
| | | | lvm.py and swap.py
* Lots of minor fixes and cleanups. A non-exhaustive list follows.David Lehman2009-02-271-7/+9
| | | | | | | | | | | - 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/+4
|
* Replace old storage modules.David Lehman2009-02-231-0/+103