summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorRichard Yao <[email protected]>2012-02-13 10:38:58 -0500
committerBrian Behlendorf <[email protected]>2012-02-13 12:25:27 -0800
commitb41c9906dcc0d75099cba8374420a513a253beff (patch)
treed470abfbf7ed44b87ac64ac2515e0543129df91b /lib
parentd2e032ca9cd62fd0e80cdce30c6d1c40421bf754 (diff)
Support ashift=13 for 8KB SSD block sizes
New SSDs are now available which use an internal 8k block size. To make sure ZFS can get the maximum performance out of these devices we're increasing the maximum ashift to 13 (8KB). This value is still small enough that we can fit 16 uberblocks in the vdev ring label. However, I don't want to increase this any futher or it will limit the ability the safely roll back a pool to recover it. Signed-off-by: Brian Behlendorf <[email protected]> Closes #565
Diffstat (limited to 'lib')
-rw-r--r--lib/libzfs/libzfs_pool.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libzfs/libzfs_pool.c b/lib/libzfs/libzfs_pool.c
index 1c8286f57..4b4d81f7b 100644
--- a/lib/libzfs/libzfs_pool.c
+++ b/lib/libzfs/libzfs_pool.c
@@ -443,7 +443,7 @@ zpool_valid_proplist(libzfs_handle_t *hdl, const char *poolname,
goto error;
}
- if (intval != 0 && (intval < 9 || intval > 12)) {
+ if (intval != 0 && (intval < 9 || intval > 13)) {
zfs_error_aux(hdl, dgettext(TEXT_DOMAIN,
"property '%s' number %d is invalid."),
propname, intval);