]> git.proxmox.com Git - mirror_zfs.git/commit
Improve error message for zfs create with @ or # in name
authorDamian Wojsław <damian@wojslaw.pl>
Mon, 25 Feb 2019 19:20:07 +0000 (20:20 +0100)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Mon, 25 Feb 2019 19:20:07 +0000 (11:20 -0800)
commite065034563c8ea34d647c83c22717d72315ca580
treed312bff10559fa4cd80b20a502809efa1ef69211
parentba7b05cb257eeabbba503db89cd2ed58eaeabad6
Improve error message for zfs create with @ or # in name

Reorder the `zfs create` error messages in order to return the most
specific one first.  If none of them apply then an expanded version of
the invalid name message is used.

Reviewed by: Tom Caputi <tcaputi@datto.com>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed by: Matt Ahrens <mahrens@delphix.com>
Signed-off-by: Damian Wojsław <damian@wojslaw.pl>
Closes #8155
Closes #8352
lib/libzfs/libzfs_dataset.c