diff options
author | Xiao Ni <xni@redhat.com> | 2024-05-22 10:50:43 +0200 |
---|---|---|
committer | Mariusz Tkaczyk <mariusz.tkaczyk@linux.intel.com> | 2024-05-24 10:04:55 +0200 |
commit | 41706a91568472d10153bf4ada3c3f0d93ef327a (patch) | |
tree | a8f1fcd4cc2f013fe1d5ae2761d4169670f08e4a /test | |
parent | mdadm/tests: test don't fail when systemd reports error (diff) | |
download | mdadm-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-x | test | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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 |