From: John L. Hammond Date: Fri, 8 Dec 2017 16:19:48 +0000 (-0600) Subject: LU-10038 test: ignore readdir races in sanity 133g X-Git-Tag: 2.10.57~89 X-Git-Url: https://git.whamcloud.com/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F51%2F30451%2F3;p=fs%2Flustre-release.git LU-10038 test: ignore readdir races in sanity 133g In sanity test_133g() writing to some files (for example mdt/*/exports/clear) may cause cause the proc tree to change while find is running. Avoid errors in these cases by adding the -ignore_readdir_race option to the find invocations. Test-Parameters: trivial testlist=sanity Signed-off-by: John L. Hammond Change-Id: I3ce61ee0f4e1041041d6872a0fe03488a9df363c Reviewed-on: https://review.whamcloud.com/30451 Tested-by: Jenkins Reviewed-by: Andreas Dilger Tested-by: Maloo Reviewed-by: Jian Yu --- diff --git a/lustre/tests/sanity.sh b/lustre/tests/sanity.sh index da0a365..f98a0f4 100755 --- a/lustre/tests/sanity.sh +++ b/lustre/tests/sanity.sh @@ -10096,6 +10096,7 @@ test_133g() { echo "proc_dirs='$proc_dirs'" [ -n "$proc_dirs" ] || error "no proc_dirs on $HOSTNAME" find $proc_dirs \ + -ignore_readdir_race \ -type f \ -not -name force_lbug \ -not -name changelog_mask \ @@ -10111,6 +10112,7 @@ test_133g() { echo "${facet}_proc_dirs='$facet_proc_dirs'" [ -z "$facet_proc_dirs" ] && error "no proc_dirs on $facet" do_facet $facet find $facet_proc_dirs \ + -ignore_readdir_race \ -type f \ -not -name force_lbug \ -not -name changelog_mask \