Whamcloud - gitweb
LU-6247 tests: fix nodemap quota test to use correct blocksize 44/13844/4
authorKit Westneat <kit.westneat@gmail.com>
Mon, 23 Feb 2015 16:23:17 +0000 (11:23 -0500)
committerOleg Drokin <oleg.drokin@intel.com>
Fri, 27 Mar 2015 15:29:34 +0000 (15:29 +0000)
commit0233e76f3f9830210ba7012554ee7cfc41e3ab37
tree3db32c841c5d21afff862732aa20e264d8747edb
parent6cad330ded9c6ff21b35229139b7f60fbbfe80c6
LU-6247 tests: fix nodemap quota test to use correct blocksize

The nodemap quota test needs to take into account indirect blocks and
other overhead when deciding if the quota used is excessive. It's
supposed to add the fs blocksize * 2, so 8k on ldiskfs and 256k on
zfs, but it was using the osc block size instead of the osd
blocksize. This patch modifies the test to use the fs_log_size helper
to determine an appropriate fuzz size.

Test-Parameters: mdtfilesystemtype=zfs mdsfilesystemtype=zfs ostfilesystemtype=zfs testlist=sanity-sec
Signed-off-by: Kit Westneat <kit.westneat@gmail.com>
Change-Id: I3bf6380fd0a0e6b3246343da8a139c6b4ea120ae
Reviewed-on: http://review.whamcloud.com/13844
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Tested-by: Jenkins
Reviewed-by: Isaac Huang <he.huang@intel.com>
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Nathaniel Clark <nathaniel.l.clark@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/tests/sanity-sec.sh