From: James Nunez Date: Fri, 18 Nov 2016 20:49:45 +0000 (-0700) Subject: LU-8738 tests: ladvise dontneed test write to single OST X-Git-Tag: 2.9.0-RC1~7 X-Git-Url: https://git.whamcloud.com/gitweb?a=commitdiff_plain;h=c632d6094c5a228c86c898400192e81b03833fc5;p=fs%2Flustre-release.git LU-8738 tests: ladvise dontneed test write to single OST sanity test 255b exercises the ladvise hint 'dontneed' by checking total cache and cache used on a single OST. Limit the file striping to a single OST for the file created for this test. Test-Parameters: trivial testlist=sanity,sanity,sanity Test-Parameters: trivial testlist=sanity,sanity,sanity Test-Parameters: trivial testlist=sanity,sanity,sanity Signed-off-by: James Nunez Change-Id: Iee08576726fc56bc9e7aa961c22819265c31f69b Reviewed-on: http://review.whamcloud.com/23867 Tested-by: Jenkins Tested-by: Maloo Reviewed-by: Niu Yawei Reviewed-by: Wei Liu Reviewed-by: Jian Yu Reviewed-by: Oleg Drokin --- diff --git a/lustre/tests/sanity.sh b/lustre/tests/sanity.sh index 6222a30..c24dd3f 100755 --- a/lustre/tests/sanity.sh +++ b/lustre/tests/sanity.sh @@ -14443,8 +14443,6 @@ facet_meminfo() { } test_255b() { - lfs setstripe -c -1 -i 0 $DIR/$tfile - ladvise_no_type dontneed $DIR/$tfile && skip "dontneed ladvise is not supported" && return @@ -14457,6 +14455,8 @@ test_255b() { [ "$(facet_fstype ost1)" = "zfs" ] && skip "zfs-osd does not support dontneed advice" && return + lfs setstripe -c 1 -i 0 $DIR/$tfile + local size_mb=100 local size=$((size_mb * 1048576)) # In order to prevent disturbance of other processes, only check 3/4