From e5849abd06bf5ec6a636b1608ec82901fd6447a9 Mon Sep 17 00:00:00 2001 From: Elena Gryaznova Date: Thu, 18 Mar 2010 15:25:27 -0700 Subject: [PATCH 1/1] b=22334 swap the declarations for OBD_FAIL_MDS_READLINK_EPROTO and OBD_FAIL_MDS_OPEN_WAIT_CREATE i=Andreas.Dilger --- lustre/include/obd_support.h | 4 ++-- lustre/tests/replay-single.sh | 4 ++-- lustre/tests/sanity.sh | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) 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 } -- 1.8.3.1