Added class to contain information about a PV
This makes the code more readable and easier to upgrade. bdev.LogicalVolume.GetPVInfo and the code that depends on it have been refactored to use the new class. utils.CheckVolumeGroupSize() has been moved to lib/utils/lvm.py, where more functions will be added. Signed-off-by:Bernardo Dal Seno <bdalseno@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
Showing
- Makefile.am 1 addition, 0 deletionsMakefile.am
- lib/backend.py 3 additions, 3 deletionslib/backend.py
- lib/bdev.py 10 additions, 8 deletionslib/bdev.py
- lib/cmdlib.py 7 additions, 6 deletionslib/cmdlib.py
- lib/objects.py 35 additions, 0 deletionslib/objects.py
- lib/utils/__init__.py 1 addition, 25 deletionslib/utils/__init__.py
- lib/utils/lvm.py 47 additions, 0 deletionslib/utils/lvm.py
Loading
Please register or sign in to comment