[blivet:master 0/5] Consistency in RAID level related checks

mulhern amulhern at redhat.com
Mon Oct 6 13:14:47 UTC 2014


The idea is to try to be consistent between various device types which use
RAID when setting RAID level or updating various other bits of state that
could invalidate RAID level.

The first patch is a simple cleanup.
The next two are the main bits of the change.
The last two update tests appropriately.

mulhern (5):
  Do not set parents attribute if parents param is bad.
  Add new RaidDevice class for handling RAID aspects of devices.
  Use new RaidDevice class in appropriate Device subclasses.
  Update test setup so that it obeys RAID level requirements.
  Adjust detection of exceptions raised.

 blivet/devices/btrfs.py     |  57 ++++++----------
 blivet/devices/device.py    |   6 +-
 blivet/devices/md.py        |  45 +++++++------
 blivet/devices/raid.py      | 106 +++++++++++++++++++++++++++++
 tests/devicefactory_test.py |   8 ++-
 tests/devices_test.py       | 161 ++++++++++++++++++++++++++++++++++----------
 6 files changed, 285 insertions(+), 98 deletions(-)
 create mode 100644 blivet/devices/raid.py

-- 
1.9.3



More information about the anaconda-patches mailing list