K 10 svn:author V 7 asomers K 8 svn:date V 27 2015-12-16T00:22:14.630190Z K 7 svn:log V 1161 Fix the ro_props_001_pos test, which has spuriously failing for a while. tests/sys/cddl/zfs/tests/cli_root/zfs_set/ro_props_001_pos.ksh: - This test runs through many different ZFS property settings, checking that read-only properties can't be changed from the 'zfs set' command. However, the test reported that the 'used' property changed. - The root cause is because, when a ZFS command is issued that changes the pool configuration (e.g. create filesystem or snapshot), the action gets recorded in the pool history. However, the history logging is asynchronous, and its syncing can change the 'used' value for the pool dataset. - When the initial setup is complete, grab the pool history before continuing. This will force the outstanding history to be synced to disk before returning. tests/sys/cddl/zfs/tests/cli_root/zfs_set/zfs_set_common.kshlib: - Clean up set_n_check_prop() while here so it provides better feedback on error and is easier to understand. Submitted by: Will Sponsored by: Spectra Logic Corporation END