HomeFreeBSD

Fix zfs_ioc_objset_stats

Description

Fix zfs_ioc_objset_stats

Interestingly this looks like an upstream bug as well. If for some
reason we are unable to get a zvols statistics, because perhaps the
zpool is hopelessly corrupt, we would trigger the VERIFY. This
commit adds the proper error handling just to propagate the error
back to user space. Now the user space tools still must handle this
properly but in the worst case the tool will crash or perhaps have
some missing output. That's far far better than crashing the host.

Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>

Details

Provenance
Brian Behlendorf <behlendorf1@llnl.gov>Authored on Aug 26 2010, 5:34 PM
Parents
rG5cc556b44738: Fix zio_taskq_dispatch to use TQ_NOSLEEP
Branches
Unknown
Tags
Unknown

Event Timeline

Brian Behlendorf <behlendorf1@llnl.gov> committed rG8a8f5c6b3ca4: Fix zfs_ioc_objset_stats (authored by Brian Behlendorf <behlendorf1@llnl.gov>).Aug 31 2010, 3:38 PM