mirror_zfs/tests/zfs-tests
LOLi ff61d1a495 Check ashift validity in 'zpool add'
df83110 added the ability to specify a custom "ashift" value from the command
line in 'zpool add' and 'zpool attach'. This commit adds additional checks to
the provided ashift to prevent invalid values from being used, which could
result in disastrous consequences for the whole pool.

Additionally provide ASHIFT_MAX and ASHIFT_MIN definitions in spa.h.

Reviewed-by: Giuseppe Di Natale <dinatale2@llnl.gov>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: loli10K <ezomori.nozomu@gmail.com>
Closes #5878
2017-03-28 17:21:11 -07:00
..
cmd codebase style improvements for OpenZFS 6459 port 2017-01-22 13:25:40 -08:00
include Add auto-online test for ZED/FMA as part of the ZTS 2017-02-28 16:25:39 -08:00
tests Check ashift validity in 'zpool add' 2017-03-28 17:21:11 -07:00
Makefile.am Add the ZFS Test Suite 2016-03-16 13:46:16 -07:00