HomeFreeBSD

Pool allocation classes misplacing small file blocks

Description

Pool allocation classes misplacing small file blocks

Due to an off-by-one condition in spa_preferred_class() we are picking
the "normal" allocation class instead of the "special" one for file
blocks with size equal to the special_small_blocks property value.

This change fix the small code issue, update the ZFS Test Suite and the
zfs(8) man page.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Don Brady <don.brady@delphix.com>
Signed-off-by: loli10K <ezomori.nozomu@gmail.com>
Closes #8351
Closes #8361

Details

Provenance
loli10K <loli10K@users.noreply.github.com>Authored on Feb 8 2019, 8:32 PM
mahrensCommitted on Feb 8 2019, 8:32 PM
Parents
R10:0902c4577f4b: Fix ARC stats for embedded blkptrs
Branches
Unknown
Tags
Unknown

Event Timeline