mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-14 10:09:48 +00:00
Fix detecting available zpool names.
Submitted by: kmoore Obtained from: PC-BSD MFC after: 3 days Sponsored by: iXsystems
This commit is contained in:
parent
64907dc465
commit
01c64e45fc
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=236331
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user