summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorXiao Ni <xni@redhat.com>2024-05-22 10:50:43 +0200
committerMariusz Tkaczyk <mariusz.tkaczyk@linux.intel.com>2024-05-24 10:04:55 +0200
commit41706a91568472d10153bf4ada3c3f0d93ef327a (patch)
treea8f1fcd4cc2f013fe1d5ae2761d4169670f08e4a /test
parentmdadm/tests: test don't fail when systemd reports error (diff)
downloadmdadm-41706a91568472d10153bf4ada3c3f0d93ef327a.tar.xz
mdadm-41706a91568472d10153bf4ada3c3f0d93ef327a.zip
mdadm/tests: names_template enhance
For super1, if the length of hostname is >= 32, it doesn't add hostname in metadata name. Fix this problem by checking the length of hostname. Because other cases may use need to check this, so do the check in do_setup. And this patch adds a check if link /dev/md/name exists. Signed-off-by: Xiao Ni <xni@redhat.com> Signed-off-by: Mariusz Tkaczyk <mariusz.tkaczyk@linux.intel.com>
Diffstat (limited to 'test')
-rwxr-xr-xtest5
1 files changed, 5 insertions, 0 deletions
diff --git a/test b/test
index 3da53f87..814ce199 100755
--- a/test
+++ b/test
@@ -11,6 +11,11 @@ system_speed_limit_min=0
test_speed_limit_min=100
test_speed_limit_max=500
devlist=
+# If super1 metadata name doesn't have the same hostname with machine,
+# it's treated as foreign.
+# For example, /dev/md0 is created, stops it, then assemble it, the
+# device node will be /dev/md127 (127 is choosed by mdadm autumatically)
+is_foreign="no"
savelogs=0
exitonerror=1