]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Allow pool names that look like Solaris disk names
authorRyan Moeller <ryan@iXsystems.com>
Thu, 1 Apr 2021 15:49:41 +0000 (11:49 -0400)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Wed, 7 Apr 2021 20:24:46 +0000 (13:24 -0700)
commit895d39aa832a6d90cb15263f8bbe41509baa3867
tree34fccde40915f55e856f5c19f93baca902666235
parent7f789e150f8d8df79e90748046a8469ec354e1a4
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
module/zcommon/zfs_namecheck.c
tests/zfs-tests/tests/functional/pool_names/pool_names_002_neg.ksh