]> git.proxmox.com Git - mirror_zfs.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)
committerGitHub <noreply@github.com>
Thu, 1 Apr 2021 15:49:41 +0000 (08:49 -0700)
commitc05eec32a7f7eeeb17c328f39da742a8096a5991
tree40766258a377dd95de1d6a7d3ad50d977177cdb4
parent032a213e2e6b791364301e9de029e7b8189a69a0
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