diff --git a/tests/md/test-mdadm.sh b/tests/md/test-mdadm.sh index 10a693952..ead07363e 100755 --- a/tests/md/test-mdadm.sh +++ b/tests/md/test-mdadm.sh @@ -1,6 +1,6 @@ #!/bin/bash - # libguestfs -# Copyright (C) 2011 Red Hat Inc. +# Copyright (C) 2011-2018 Red Hat Inc. # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -25,6 +25,12 @@ skip_if_skipped rm -f mdadm-{1,2,3,4}.img +# Partition boundaries. +p1_start=$(( 1024*1024/512 )); p1_end=$(( 20*1024*1024/512 - 1 )) +p2_start=$(( p1_end+1 )); p2_end=$(( 40*1024*1024/512 - 1 )) +p3_start=$(( p2_end+1 )); p3_end=$(( 60*1024*1024/512 - 1 )) +p4_start=$(( p3_end+1 )); p4_end=$(( 80*1024*1024/512 - 1 )) + guestfish <