LU-1526 tests: Adapt oos to the new grant and osd-zfs behavior

This patch is backported from commit 938947f of LU-1415 to
support oos interoperating testing with 2.4 server.

The patch moves the oos checking codes from oos.sh and
oos2.sh into common function oos_full() in test-framework.sh.

The oos_full() allows 1% of total space in bavail because of
delayed allocation with ZFS which might release some free space
after txg commit.

Signed-off-by: Yu Jian <yujian@whamcloud.com>
Change-Id: I8933a6c8614a96d7bab5689c9d3e3a1f59bbc133
Reviewed-on: http://review.whamcloud.com/4986
Tested-by: Hudson
Reviewed-by: Niu Yawei <yawei.niu@intel.com>
Reviewed-by: Li Wei <wei.g.li@intel.com>
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Reviewed-by: wangdi <di.wang@intel.com>
Tested-by: Maloo <whamcloud.maloo@gmail.com>
LU-1018 tests: reduce runtime value for compilebench

We are reducing the cbench_IDIRS and cbench_RUNS to 2.
These variables can be adjusted to other runs beside
sanity check.

Test-Parameters: envdefinitions=SLOW=yes,ENABLE_QUOTA=yes testlist=parallel-scale
Signed-off-by: Minh Diep <minh.diep@intel.com>
Change-Id: I6613c9d0245d6c49c8d94f1252eb13ac87a621a1
Reviewed-on: http://review.whamcloud.com/5032
Tested-by: Hudson
Reviewed-by: Jian Yu <jian.yu@intel.com>
Reviewed-by: Emoly Liu <emoly.liu@intel.com>
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Johann Lombardi <johann.lombardi@intel.com>