]> git.proxmox.com Git - mirror_zfs.git/commit
libzfs: handle EDOM errors
authorDHE <git@dehacked.net>
Sun, 11 Oct 2015 15:42:42 +0000 (11:42 -0400)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Tue, 13 Oct 2015 16:54:04 +0000 (09:54 -0700)
commit385f9691c46811e5e04626ef879bf7061a4009ed
tree1156d3bac19c18e13c1f074dc5812dfa0bbc61b7
parent935434ef01fc067f3b4bc26be6378f8f1d89734a
libzfs: handle EDOM errors

EDOM may occur if a user tries to set `recordsize` too large without
use "zfs set". This can be demonstrated with:

> zpool create testpool -O recordsize=32M /dev/...

Signed-off-by: DHE <git@dehacked.net>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #3911
lib/libzfs/libzfs_util.c