HomeFreeBSD

Spurious ENOMEM returns when reading dbufs kstat

Description

Spurious ENOMEM returns when reading dbufs kstat

Commit 7b2d78a046aa4695d434478a439a9438521d73af fixed some improper uses
of snprintf(), however, in __dbuf_stats_hash_table_data() the return
value of snprintf is propagated to the caller. This caused spurious
ENOMEM errors when reading the dbufs kstat.

This commit causes the actual number of characters written to be returned.

Signed-off-by: Tim Chase <tim@chase2k.com>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #3072

Details

Provenance
Tim Chase <tim@chase2k.com>Authored on Feb 3 2015, 5:55 AM
Brian Behlendorf <behlendorf1@llnl.gov>Committed on Feb 5 2015, 12:35 AM
Parents
rG037763e44e0f: fix l2arc compression buffers leak
Branches
Unknown
Tags
Unknown

Event Timeline

Brian Behlendorf <behlendorf1@llnl.gov> committed rGaa2ef419e46b: Spurious ENOMEM returns when reading dbufs kstat (authored by Tim Chase <tim@chase2k.com>).Feb 5 2015, 12:35 AM