Make RAIDLevels iterable (#1085474)

Related: fed#1085474

Signed-off-by: mulhern <amulhern@redhat.com>
Improve comments on a few methods (#1085474)

Related: fed#1085474

Get types correct and expand descriptions.

Signed-off-by: mulhern <amulhern@redhat.com>
Rename _get_size to _trim, which describes its function better (#1085474)

Related: fed#1085474

Signed-off-by: mulhern <amulhern@redhat.com>
Rename get_raw_array_size to get_net_array_size (#1085474)

The comments added to this method in commit
1149268de36e06d88f2adc0913c9878c972dab8b which describe its function should
justify the renaming.

Related: fed#1085474

Signed-off-by: mulhern <amulhern@redhat.com>
Log if there was a failure to calculate the size of the MDRaidArrayDevice (#1085474)

Related: fed#1085474

Signed-off-by: mulhern <amulhern@redhat.com>
Check whether type is mdbiosraidarray before checking smallest member (#1085474)

Related: fed#1085474

Signed-off-by: mulhern <amulhern@redhat.com>
Move line that might throw an MDRaid exception inside try block (#1085474)

Resolves: fed#1085474

If any of the raid or mdraid methods raise an exception the size will be 0.

Signed-off-by: mulhern <amulhern@redhat.com>
Add a size() method to the raid classes (#1085474)

Related: fed#1085474

Signed-off-by: mulhern <amulhern@redhat.com>
Use raid.size method to get size of device (#1085474)

Resolves: fed#1085474

Requires modifying superBlockSize() so it can be passed as an argument to
size(). Since it is no longer a property, change its name to
getSuperBlockSize().

Signed-off-by: mulhern <amulhern@redhat.com>
Remove unused get_size method (#1085474)

Resolves: fed#1085474

Signed-off-by: mulhern <amulhern@redhat.com>
Rename size() method to get_size() method.

Since get_size() method was removed its name can be reused.

Signed-off-by: mulhern <amulhern@redhat.com>
Removed some now unused methods from devices (#1085474)

Resolves: fed#1085474

Update tests accordingly.

Signed-off-by: mulhern <amulhern@redhat.com>
Adjust the available size on each disk using chunk size.

Previously the code adjusted the total size across all member devices using
the chunk size, but chunks are not allocated across disks.

Signed-off-by: mulhern <amulhern@redhat.com>