Files
libguestfs/tests/md
Richard W.M. Jones b0c11adee7 tests: md: Increase size of MD partitions in test.
Commit c11a92751e chose some strangely
sized partitions for testing Linux MD devices.  The disks were 100M
however the four partitions only covered the first 10M of disk space
(with the rest being unallocated and unused in the test).

This worked until Linux 4.20 where the ~2M-sized partitions become too
small for a Linux MD device.

This commit changes the test to use four 20M-sized partitions which is
sufficient space to create the MD device with recent kernels.  I also
modified the partition allocation code to use explicit calculations
and variables, making it considerably clearer.
2018-11-30 14:59:32 +00:00
..