HomeFreeBSD

zfs userspace dumps core when used on ZVOLs

Description

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

Details

Provenance
loli10K <loli10K@users.noreply.github.com>Authored on Jan 25 2019, 5:47 PM
Brian Behlendorf <behlendorf1@llnl.gov>Committed on Jan 25 2019, 5:47 PM
Parents
rG8fccfa8e17d3: zpool iostat should print headers when terminal fills
Branches
Unknown
Tags
Unknown

Event Timeline

Brian Behlendorf <behlendorf1@llnl.gov> committed rG7646af20ad34: zfs userspace dumps core when used on ZVOLs (authored by loli10K <loli10K@users.noreply.github.com>).Jan 25 2019, 5:47 PM