]> git.ipfire.org Git - thirdparty/mdadm.git/commit
Init devlist as an array
authorXiao Ni <xni@redhat.com>
Mon, 30 Sep 2019 11:47:59 +0000 (19:47 +0800)
committerJes Sorensen <jsorensen@fb.com>
Mon, 30 Sep 2019 19:26:44 +0000 (15:26 -0400)
commit8063fd0f9e8abd718bd65928c19bc607cee5acd8
tree8e85f6a05c7f53c39b113e62bcbe367dee082800
parente53cb968691d9e40d83caf5570da3bb7b83c64e1
Init devlist as an array

devlist is an string. It will change to an array if there is disk that
is sbd disk. If one device is sbd, it runs devlist=().
This line code changes devlist from a string to an array. If there is
no sbd device, it can't run this line code. So it will still be a string.
The later codes need an array, rather than an string. So init devlist
as an array to fix this problem.

Signed-off-by: Xiao Ni <xni@redhat.com>
Signed-off-by: Jes Sorensen <jsorensen@fb.com>
clustermd_tests/func.sh