From: Bobi Jam Date: Mon, 4 May 2015 11:05:00 +0000 (+0800) Subject: LU-4366 test: sync didn't return ENOMEM X-Git-Tag: 2.7.54~30 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;ds=sidebyside;h=refs%2Fchanges%2F58%2F14658%2F3;p=fs%2Flustre-release.git LU-4366 test: sync didn't return ENOMEM The fail_loc has been intercepted by earlier write, this patch add a sync before setting the fail_loc. Test-Parameters: alwaysuploadlogs testlist=sanity Signed-off-by: Bobi Jam Change-Id: I0517ccc591651e275dc4d4cd2a3de179c2c2b3f1 Reviewed-on: http://review.whamcloud.com/14658 Tested-by: Jenkins Reviewed-by: Jian Yu Reviewed-by: Andreas Dilger Tested-by: Andreas Dilger --- diff --git a/lustre/tests/sanity.sh b/lustre/tests/sanity.sh index 669a971..7733ffc 100644 --- a/lustre/tests/sanity.sh +++ b/lustre/tests/sanity.sh @@ -5228,6 +5228,8 @@ test_63b() { dd if=/dev/zero of=$DIR/$tfile bs=4k count=1 rm $DIR/$tfile + sync # sync lest earlier test intercept the fail_loc + #define OBD_FAIL_OSC_BRW_PREP_REQ 0x406 lctl set_param fail_loc=0x80000406 $MULTIOP $DIR/$tfile Owy && \