diff --git a/lustre/tests/conf-sanity.sh b/lustre/tests/conf-sanity.sh index bf500c5bac9b3ef47d2082c62a513cbebe410610..cd6732557e4456900b80b4050444b35e94287bdb 100644 --- a/lustre/tests/conf-sanity.sh +++ b/lustre/tests/conf-sanity.sh @@ -1614,5 +1614,32 @@ test_42() { #bug 14693 } run_test 42 "invalid config param should not prevent client from mounting" +test_43() { #bug 15993 + setup + check_mount || return 2 + testfile=$DIR/$tfile + lma="this-should-be-removed-after-remount-and-accessed" + touch $testfile + echo "set/get trusted.lma" + setfattr -n trusted.lma -v $lma $testfile || error "create common EA" + ATTR=$(getfattr -n trusted.lma $testfile 2> /dev/null | grep trusted.lma) + [ "$ATTR" = "trusted.lma=\"$lma\"" ] || error "check common EA" + umount_client $MOUNT + stop_mds + sleep 5 + start_mds + mount_client $MOUNT + check_mount || return 3 +#define OBD_FAIL_MDS_REMOVE_COMMON_EA 0x13e + do_facet mds "lctl set_param fail_loc=0x13e" + stat $testfile + do_facet mds "lctl set_param fail_loc=0" + getfattr -d -m trusted $testfile 2> /dev/null | \ + grep "trusted.lma" && error "common EA not removed" || true + cleanup + return 0 +} +run_test 43 "remove common EA if it exists" + equals_msg `basename $0`: test complete [ -f "$TESTSUITELOG" ] && cat $TESTSUITELOG || true