Whamcloud - gitweb
LU-1526 tests: Adapt oos to the new grant and osd-zfs behavior
authorYu Jian <yujian@whamcloud.com>
Thu, 10 Jan 2013 08:19:58 +0000 (16:19 +0800)
committerJohann Lombardi <johann.lombardi@intel.com>
Thu, 17 Jan 2013 15:27:09 +0000 (10:27 -0500)
commit3e209d1f5102340f0c71bcc3b26ca1e6a7903c4d
tree6573e7496d23b28ad5ac44cde27e29840bc6c57e
parent271aa360cd5436600232c0e1517e73184bf36500
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>
lustre/tests/oos.sh
lustre/tests/oos2.sh [changed mode: 0644->0755]
lustre/tests/test-framework.sh