From: Elena Gryaznova Date: Thu, 18 Mar 2010 22:25:27 +0000 (-0700) Subject: b=22334 swap the declarations for OBD_FAIL_MDS_READLINK_EPROTO and OBD_FAIL_MDS_OPEN_... X-Git-Tag: 1.10.0.39~45 X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=commitdiff_plain;h=e5849abd06bf5ec6a636b1608ec82901fd6447a9;hp=433b459f8bef83fbf84b4daf9a28653efeed903d;ds=sidebyside b=22334 swap the declarations for OBD_FAIL_MDS_READLINK_EPROTO and OBD_FAIL_MDS_OPEN_WAIT_CREATE i=Andreas.Dilger --- diff --git a/lustre/include/obd_support.h b/lustre/include/obd_support.h index a3be3a1..ae14668 100644 --- a/lustre/include/obd_support.h +++ b/lustre/include/obd_support.h @@ -222,8 +222,8 @@ int obd_alloc_fail(const void *ptr, const char *name, const char *type, #define OBD_FAIL_MDS_FAIL_LOV_LOG_ADD 0x140 #define OBD_FAIL_MDS_LOV_PREP_CREATE 0x141 #define OBD_FAIL_MDS_REINT_DELAY 0x142 -#define OBD_FAIL_MDS_OPEN_WAIT_CREATE 0x143 -#define OBD_FAIL_MDS_READLINK_EPROTO 0x144 +#define OBD_FAIL_MDS_READLINK_EPROTO 0x143 +#define OBD_FAIL_MDS_OPEN_WAIT_CREATE 0x144 /* CMD */ #define OBD_FAIL_MDS_IS_SUBDIR_NET 0x180 diff --git a/lustre/tests/replay-single.sh b/lustre/tests/replay-single.sh index d939e29..4b0f5c0 100755 --- a/lustre/tests/replay-single.sh +++ b/lustre/tests/replay-single.sh @@ -2021,8 +2021,8 @@ test_83b() { run_test 83b "fail log_add during unlink recovery" test_84a() { -#define OBD_FAIL_MDS_OPEN_WAIT_CREATE 0x143 - do_facet $SINGLEMDS "lctl set_param fail_loc=0x80000143" +#define OBD_FAIL_MDS_OPEN_WAIT_CREATE 0x144 + do_facet $SINGLEMDS "lctl set_param fail_loc=0x80000144" createmany -o $DIR/$tfile- 1 & PID=$! mds_evict_client diff --git a/lustre/tests/sanity.sh b/lustre/tests/sanity.sh index 88e73ff..aebf88d 100644 --- a/lustre/tests/sanity.sh +++ b/lustre/tests/sanity.sh @@ -490,7 +490,7 @@ test_17i() { #bug 20018 local foo=$DIR/$tdir/$tfile ln -s $foo $foo || error "create symlink failed" #define OBD_FAIL_MDS_READLINK_EPROTO 0x143 - do_facet mds lctl set_param fail_loc=0x80000144 + do_facet mds lctl set_param fail_loc=0x80000143 ls -l $foo && error "error not detected" return 0 }