mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2024-12-25 18:59:33 +03:00
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 <behlendorf1@llnl.gov> Closes #565
This commit is contained in:
parent
d2e032ca9c
commit
b41c9906dc
@ -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);
|
||||
|
@ -89,7 +89,7 @@ zpool_prop_init(void)
|
||||
|
||||
/* readonly onetime number properties */
|
||||
zprop_register_number(ZPOOL_PROP_ASHIFT, "ashift", 0, PROP_ONETIME,
|
||||
ZFS_TYPE_POOL, "<ashift, 9-12, or 0=default>", "ASHIFT");
|
||||
ZFS_TYPE_POOL, "<ashift, 9-13, or 0=default>", "ASHIFT");
|
||||
|
||||
/* default number properties */
|
||||
zprop_register_number(ZPOOL_PROP_VERSION, "version", SPA_VERSION,
|
||||
|
Loading…
Reference in New Issue
Block a user