Whamcloud - gitweb
LU-9891 tests: Increase space not released for ZFS 82/28682/4
authorJames Nunez <james.a.nunez@intel.com>
Thu, 24 Aug 2017 14:51:15 +0000 (08:51 -0600)
committerOleg Drokin <oleg.drokin@intel.com>
Wed, 13 Sep 2017 03:37:35 +0000 (03:37 +0000)
Several Lustre tests calculate the free space on the
object storage servers. For servers running ZFS, the amount
of space released by ZFS is not 100% deterministic. Thus,
fs_log_size() will return the buffer size that we allow
the space to be off by. For ZFS, increase this buffer
from 400 to 512 KB.

Test-Parameters: trivial testgroup=review-zfs-part-2
Signed-off-by: James Nunez <james.a.nunez@intel.com>
Change-Id: I32e0ae3752d0ee0e9f0091ea779f8b53ba969a26
Reviewed-on: https://review.whamcloud.com/28682
Tested-by: Jenkins
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Reviewed-by: Patrick Farrell <paf@cray.com>
Tested-by: Maloo <hpdd-maloo@intel.com>
lustre/tests/test-framework.sh

index 3e46015..f302656 100755 (executable)
@@ -746,7 +746,7 @@ fs_log_size() {
        local size=0
        case $fstype in
                ldiskfs) size=50;; # largest seen is 44, leave some headroom
        local size=0
        case $fstype in
                ldiskfs) size=50;; # largest seen is 44, leave some headroom
-               zfs)     size=400;; # largest seen is 384
+               zfs)     size=512;; # largest seen is 512
        esac
 
        echo -n $size
        esac
 
        echo -n $size