]> git.proxmox.com Git - mirror_zfs.git/commit
zfs userspace dumps core when used on ZVOLs
authorloli10K <loli10K@users.noreply.github.com>
Fri, 25 Jan 2019 17:47:52 +0000 (18:47 +0100)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Fri, 25 Jan 2019 17:47:52 +0000 (09:47 -0800)
commit7646af20ad3406afde8b02b9b58eb0e58af66700
treed8c88713b82e81b5a3c66b2261f994d618646c83
parent8fccfa8e17d30b4dae82f0cd33346f39b79f4822
zfs userspace dumps core when used on ZVOLs

If you try to get the userspace, groupspace or projectspace on a ZVOL,
the generated error results in passing EINVAL to
zfs_standard_error_fmt() when we should return a specific error to
inform the user that those properties aren't available on volumes.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed by: Tom Caputi <tcaputi@datto.com>
Signed-off-by: loli10K <ezomori.nozomu@gmail.com>
Closes #8279
cmd/zfs/zfs_main.c