mirror_zfs/cmd
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
..
arc_summary Correct arc_summary and dbufstat python style 2017-03-09 10:21:59 -08:00
arcstat Correct exit code for dbufstat -v and arcstat -v 2016-10-06 10:52:21 -07:00
dbufstat Correct arc_summary and dbufstat python style 2017-03-09 10:21:59 -08:00
fsck_zfs Add /sbin/fsck.zfs helper 2013-01-09 16:54:58 -08:00
mount_zfs Use cstyle -cpP in make cstyle check 2016-12-12 10:46:26 -08:00
raidz_test Fix "undefined reference to xdr_control" when building raidz_test cmd 2017-03-28 10:47:50 -07:00
vdev_id Add extra keyword 'slot' to vdev_id.conf 2015-08-30 10:03:56 -07:00
zdb Dump unique configurations and Uberblocks in zdb -lu 2017-03-06 16:01:45 -08:00
zed Fix undefined reference to `libzfs_fru_compare' 2017-03-23 18:24:09 -07:00
zfs OpenZFS 4521 - zfstest is trying to execute evil "zfs unmount -a" 2017-02-03 13:24:44 -08:00
zhack Fix zhack argument processing 2016-08-31 14:32:46 -07:00
zinject Fix spelling 2017-01-03 11:31:18 -06:00
zpios Fix spelling 2017-01-03 11:31:18 -06:00
zpool Check ashift validity in 'zpool add' 2017-03-28 17:21:11 -07:00
zstreamdump zstreamdump needs to initialize fletcher 4 support 2016-11-29 14:47:05 -07:00
ztest Rename zfs_* functions 2017-03-10 09:51:35 -08:00
zvol_id OpenZFS 6314 - buffer overflow in dsl_dataset_name 2016-06-28 13:47:03 -07:00
Makefile.am SIMD implementation of vdev_raidz generate and reconstruct routines 2016-06-21 09:27:26 -07:00