From: Sebastien Buisson Date: Tue, 6 Oct 2020 09:43:19 +0000 (+0200) Subject: LU-13740 tests: improve sanity-sec test_45 X-Git-Tag: 2.13.57~120 X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=commitdiff_plain;h=84ad3c76329a2ebe78fec7d1136e678ce1014c6b LU-13740 tests: improve sanity-sec test_45 Improve sanity-sec test_45 by referencing the entire mmap-ed region thanks to multiop. Also make sure encryption tests are passing on newly supported Ubuntu 20.04 distro. Test-Parameters: trivial Test-Parameters: testlist=sanity-sec envdefinitions=ONLY="36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 52 53 54" clientdistro=ubuntu2004 fstype=ldiskfs mdscount=2 mdtcount=4 Test-Parameters: testlist=sanity-sec envdefinitions=ONLY="36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 52 53 54" clientdistro=ubuntu2004 fstype=zfs mdscount=2 mdtcount=4 Test-Parameters: testlist=sanity-sec envdefinitions=ONLY="36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 52 53 54" clientdistro=el8.1 fstype=ldiskfs mdscount=2 mdtcount=4 Test-Parameters: testlist=sanity-sec envdefinitions=ONLY="36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 52 53 54" clientdistro=el8.1 fstype=zfs mdscount=2 mdtcount=4 Signed-off-by: Sebastien Buisson Change-Id: I983b6bf94d9f51486fd6b688267af46ed4188a98 Reviewed-on: https://review.whamcloud.com/40146 Tested-by: jenkins Tested-by: Maloo Reviewed-by: James Simmons Reviewed-by: Andreas Dilger --- diff --git a/lustre/tests/sanity-sec.sh b/lustre/tests/sanity-sec.sh index e678c95..e818a68 100755 --- a/lustre/tests/sanity-sec.sh +++ b/lustre/tests/sanity-sec.sh @@ -3287,8 +3287,9 @@ test_45() { $MULTIOP $tmpfile OSMWUc || error "$MULTIOP $tmpfile failed" $MMAP_CAT $tmpfile > ${tmpfile}2 - cancel_lru_locks osc ; cancel_lru_locks mdc + cancel_lru_locks + $MULTIOP $testfile OSMRUc $MMAP_CAT $testfile > ${testfile}2 cmp -bl ${tmpfile}2 ${testfile}2 || error "file $testfile is corrupted"