Whamcloud - gitweb
LU-5761 tests: fix test_89 to use fs_log_size() 20/31120/6
authorAndreas Dilger <andreas.dilger@intel.com>
Sat, 3 Feb 2018 08:27:42 +0000 (01:27 -0700)
committerOleg Drokin <oleg.drokin@intel.com>
Sat, 17 Mar 2018 05:13:30 +0000 (05:13 +0000)
commite609d30003560ba534e3da42d3240a081b00143e
tree13b92ca76c706db94ccfa70945ade9877ddff138
parentd8660543230dce0402e4ce5203dde787031abfd4
LU-5761 tests: fix test_89 to use fs_log_size()

The test_89 checks should use fs_log_size() to determine how much
space might be leaked "normally" (due to log files, etc), and how
much data should be written to ensure that we do not misinterpret
this as the leak of block.

Also, fix up fs_log_size() to use the correct grant_block_size
units, which are in bytes, but fs_log_size() returns size in KB.
Allow a margin of 2 large blocks to be allocated for ZFS.

Test-Parameters: trivial ostfilesystemtype=zfs mdtfilesystemtype=zfs testlist=replay-single,replay-single,replay-single
Signed-off-by: Andreas Dilger <andreas.dilger@intel.com>
Change-Id: Id55175fc7f25fea52345d1c4443673b7efcec230
Reviewed-on: https://review.whamcloud.com/31120
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: James Nunez <james.a.nunez@intel.com>
Reviewed-by: Hongchao Zhang <hongchao.zhang@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/tests/replay-single.sh
lustre/tests/test-framework.sh