Allow pool names that look like Solaris disk names

Nothing bad happens if a prefix of your pool name matches a disk name.
This is a bit of a silly restriction at this point.

Reviewed-by: Richard Laager <rlaager@wiktel.com>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: George Melikov <mail@gmelikov.ru>
Signed-off-by: Ryan Moeller <freqlabs@FreeBSD.org>
Closes #11781 
Closes #11813
This commit is contained in:
Ryan Moeller
2021-04-01 11:49:41 -04:00
committed by Brian Behlendorf
parent 7f789e150f
commit 895d39aa83
2 changed files with 1 additions and 7 deletions
@@ -106,7 +106,7 @@ do
done
log_note "Verify invalid pool names fail"
set -A POOLNAME "c0t0d0s0" "c0t0d0" "c0t0d19" "c0t50000E0108D279d0" \
set -A POOLNAME \
"mirror" "raidz" ",," ",,,,,,,,,,,,,,,,,,,,,,,,," \
"2222222222222222222" "mirror_pool" "raidz_pool" \
"mirror-pool" "raidz-pool" "spare" "spare_pool" \