]> git.neil.brown.name Git - mdadm.git/commit
mdadm/tests: names_template enhance
authorXiao Ni <xni@redhat.com>
Wed, 22 May 2024 08:50:43 +0000 (16:50 +0800)
committerMariusz Tkaczyk <mariusz.tkaczyk@linux.intel.com>
Fri, 24 May 2024 08:04:55 +0000 (10:04 +0200)
commit41706a91568472d10153bf4ada3c3f0d93ef327a
treea8f1fcd4cc2f013fe1d5ae2761d4169670f08e4a
parent73ba062ef93d0a57360a2d5200bc7a8f8781e7b6
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>
test
tests/func.sh
tests/templates/names_template