Authored by: Prakash Surya <prakash.surya@delphix.com>
Reviewed by: John Kennedy <john.kennedy@delphix.com>
Reviewed by: Matt Ahrens <mahrens@delphix.com>
Approved by: Dan McDonald <danmcd@omniti.com>
Reviewed-by: George Melikov <mail@gmelikov.ru>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Ported-by: Giuseppe Di Natale <dinatale2@llnl.gov>
OpenZFS-issue: https://www.illumos.org/issues/7762
OpenZFS-commit: https://github.com/openzfs/openzfs/commit/
ebaf15cb
Closes #5798
# Use is subject to license terms.
#
+#
+# Copyright (c) 2016, 2017 by Delphix. All rights reserved.
+#
+
. $STF_SUITE/include/libtest.shlib
. $STF_SUITE/tests/functional/cli_root/zfs_set/zfs_set_common.kshlib
done
;;
reservation|reserv )
- (( reservsize = $avail_space % $RANDOM ))
+ (( reservsize = $avail_space % (( $RANDOM + 1 )) ))
for val in "0" "$reservsize" "none"; do
set_and_check $ds ${rw_prop[i]} $val ${chk_prop[i]}
done