]> git.ipfire.org Git - thirdparty/mdadm.git/commitdiff
mdadm/tests: 04update-uuid
authorXiao Ni <xni@redhat.com>
Tue, 28 May 2024 13:51:48 +0000 (21:51 +0800)
committerMariusz Tkaczyk <mariusz.tkaczyk@linux.intel.com>
Tue, 28 May 2024 15:08:42 +0000 (17:08 +0200)
Patch 50b100768a11('mdadm: deprecate bitmap custom file') needs to confirm when
creating raid device with bitmap file.

Signed-off-by: Xiao Ni <xni@redhat.com>
Signed-off-by: Mariusz Tkaczyk <mariusz.tkaczyk@linux.intel.com>
tests/04update-uuid

index a4409e7895ea052abe79fc35a03090224d4df88e..25314ab5c71533f42e494b0c2456197f921a17de 100644 (file)
@@ -25,7 +25,7 @@ mdadm -S /dev/md0
 
 # now if we have a bitmap, that needs updating too.
 rm -f $targetdir/bitmap
-mdadm -CR --assume-clean -b $targetdir/bitmap $md0 -l5 -n3 $dev0 $dev1 $dev2
+yes | mdadm -CR --assume-clean -b $targetdir/bitmap $md0 -l5 -n3 $dev0 $dev1 $dev2
 mdadm -S /dev/md0
 mdadm -A /dev/md0 -b $targetdir/bitmap --update=uuid --uuid=0123456789abcdef:fedcba9876543210 $dev0 $dev1 $dev2
 no_errors
@@ -41,7 +41,7 @@ mdadm -S /dev/md0
 
 # and bitmap for version1
 rm -f $targetdir/bitmap
-mdadm -CR --assume-clean -e1.1 -b $targetdir/bitmap $md0 -l5 -n3 $dev0 $dev1 $dev2
+yes | mdadm -CR --assume-clean -e1.1 -b $targetdir/bitmap $md0 -l5 -n3 $dev0 $dev1 $dev2
 mdadm -S /dev/md0
 mdadm -A /dev/md0 -b $targetdir/bitmap --update=uuid --uuid=0123456789abcdef:fedcba9876543210 $dev0 $dev1 $dev2
 no_errors