aboutsummaryrefslogtreecommitdiffstats
path: root/man/man8
diff options
context:
space:
mode:
authorloli10K <[email protected]>2019-02-08 21:32:12 +0100
committerMatthew Ahrens <[email protected]>2019-02-08 12:32:12 -0800
commit4417096956f7439322c65d9e70a4526df45ea8d0 (patch)
tree178e2f569132f796e7e724711be9a681671608c0 /man/man8
parent0902c4577f4ba2a3687549f7d5d19718a275fb52 (diff)
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 <[email protected]> Reviewed-by: Don Brady <[email protected]> Signed-off-by: loli10K <[email protected]> Closes #8351 Closes #8361
Diffstat (limited to 'man/man8')
-rw-r--r--man/man8/zfs.88
1 files changed, 5 insertions, 3 deletions
diff --git a/man/man8/zfs.8 b/man/man8/zfs.8
index be28f2b62..4658c5b8b 100644
--- a/man/man8/zfs.8
+++ b/man/man8/zfs.8
@@ -1521,9 +1521,11 @@ This feature must be enabled to be used
.Pc .
.It Sy special_small_blocks Ns = Ns Em size
This value represents the threshold block size for including small file
-blocks into the special allocation class. Valid values are zero or a
-power of two from 512B up to 128K. The default size is 0 which means no
-small file blocks will be allocated in the special class.
+blocks into the special allocation class. Blocks smaller than or equal to this
+value will be assigned to the special allocation class while greater blocks
+will be assigned to the regular class. Valid values are zero or a power of two
+from 512B up to 128K. The default size is 0 which means no small file blocks
+will be allocated in the special class.
.Pp
Before setting this property, a special class vdev must be added to the
pool. See