Fix detecting available zpool names.

Submitted by:	kmoore
Obtained from:	PC-BSD
MFC after:	3 days
Sponsored by:	iXsystems
This commit is contained in:
Josh Paetzel 2012-05-30 20:49:28 +00:00
parent 64907dc465
commit 01c64e45fc
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=236331

View File

@ -277,7 +277,7 @@ get_zpool_name()
while :
do
NEWNAME="${BASENAME}${NUM}"
zpool import | grep -qw "${NEWNAME}" && break
zpool import | grep -qw "${NEWNAME}" || break
NUM=$((NUM+1))
done