Andrew Geissler | fc113ea | 2023-03-31 09:59:46 -0500 | [diff] [blame] | 1 | From a2c832465fc75202e244327b2081231dfa974617 Mon Sep 17 00:00:00 2001 |
| 2 | From: Sudhakar Panneerselvam <sudhakar.panneerselvam@oracle.com> |
| 3 | Date: Wed, 22 Jun 2022 14:25:16 -0600 |
| 4 | Subject: [PATCH] tests/02lineargrow: clear the superblock at every iteration |
| 5 | |
| 6 | This fixes 02lineargrow test as prior metadata causes --add operation |
| 7 | to misbehave. |
| 8 | |
| 9 | Upstream-Status: Backport [https://git.kernel.org/pub/scm/utils/mdadm/mdadm.git/commit/?id=a2c832465fc75202e244327b2081231dfa974617] |
| 10 | |
| 11 | Signed-off-by: Sudhakar Panneerselvam <sudhakar.panneerselvam@oracle.com> |
| 12 | Signed-off-by: Himanshu Madhani <himanshu.madhani@oracle.com> |
| 13 | Signed-off-by: Logan Gunthorpe <logang@deltatee.com> |
| 14 | Signed-off-by: Jes Sorensen <jes@trained-monkey.org> |
| 15 | Signed-off-by: Mingli Yu <mingli.yu@windriver.com> |
| 16 | --- |
| 17 | tests/02lineargrow | 2 ++ |
| 18 | 1 file changed, 2 insertions(+) |
| 19 | |
| 20 | diff --git a/tests/02lineargrow b/tests/02lineargrow |
| 21 | index e05c219d..595bf9f2 100644 |
| 22 | --- a/tests/02lineargrow |
| 23 | +++ b/tests/02lineargrow |
| 24 | @@ -20,4 +20,6 @@ do |
| 25 | testdev $md0 3 $sz 1 |
| 26 | |
| 27 | mdadm -S $md0 |
| 28 | + mdadm --zero /dev/loop2 |
| 29 | + mdadm --zero /dev/loop3 |
| 30 | done |
| 31 | -- |
| 32 | 2.25.1 |
| 33 | |