Whamcloud - gitweb
LU-1415 tests: Cope with ZFS's delayed space updates
authorLi Wei <liwei@whamcloud.com>
Tue, 22 May 2012 04:22:27 +0000 (12:22 +0800)
committerOleg Drokin <green@whamcloud.com>
Mon, 16 Jul 2012 16:41:27 +0000 (12:41 -0400)
commit19a02f41f298db0b3403c6659b3c3bb29bca551e
tree2c439baf7f80bbef7a585edffad0552b48439273
parent11c2c0ec77125041e9c8143a80e7e51aede653ea
LU-1415 tests: Cope with ZFS's delayed space updates

Space-related updates, such as changes of dn_used and of
ds_used_bytes, are invisible to opertions like dt_attr_get() and
dt_statfs() until after corresponding transaction groups start to be
synchronized.  This patch makes sure the tests do a dt_sync() for each
OST before checking space usage.

Change-Id: Icff5106c0c4c493ef981bc14a0aabac8da16764d
Signed-off-by: Li Wei <liwei@whamcloud.com>
Reviewed-on: http://review.whamcloud.com/2909
Tested-by: Hudson
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Alex Zhuravlev <bzzz@whamcloud.com>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/tests/sanity.sh
lustre/tests/sanityn.sh
lustre/tests/test-framework.sh