Whamcloud - gitweb
LU-4366 test: sync didn't return ENOMEM 58/14658/3
authorBobi Jam <bobijam.xu@intel.com>
Mon, 4 May 2015 11:05:00 +0000 (19:05 +0800)
committerAndreas Dilger <andreas.dilger@intel.com>
Thu, 7 May 2015 08:13:47 +0000 (08:13 +0000)
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 <bobijam.xu@intel.com>
Change-Id: I0517ccc591651e275dc4d4cd2a3de179c2c2b3f1
Reviewed-on: http://review.whamcloud.com/14658
Tested-by: Jenkins
Reviewed-by: Jian Yu <jian.yu@intel.com>
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Tested-by: Andreas Dilger <andreas.dilger@intel.com>
lustre/tests/sanity.sh

index 669a971..7733ffc 100644 (file)
@@ -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 && \