. $LUSTRE/tests/test-framework.sh
init_test_env $@
. ${CONFIG:=$LUSTRE/tests/cfg/$NAME.sh}
+init_logging
DIRECTIO=${DIRECTIO:-$LUSTRE/tests/directio}
[ $MDSCOUNT -gt 1 ] && skip "CMD case" && exit 0
-remote_mds_nodsh && skip "remote MDS with nodsh" && exit 0
-remote_ost_nodsh && skip "remote OST with nodsh" && exit 0
+require_dsh_mds || exit 0
+require_dsh_ost || exit 0
[ "$SLOW" = "no" ] && EXCEPT_SLOW="9 10 11 18b 21"
check_and_setup_lustre
-if [ x"$(som_check)" = x"enabled" ]; then
- echo "Som is enabled, Quota is temporary conflicts with it"
- check_and_cleanup_lustre
- export QUOTA_AUTO=$QUOTA_AUTO_OLD
- exit 0
-fi
-
LOVNAME=`lctl get_param -n llite.*.lov.common_name | tail -n 1`
OSTCOUNT=`lctl get_param -n lov.$LOVNAME.numobd`
local BLK_LIMIT=$((100 * 1024 * 1024)) # 100G
local timeout
local pid
- local origin_resends
if at_is_enabled; then
timeout=$(at_max_get client)
lctl set_param timeout=10
fi
- origin_resends=$(lctl get_param -n mdc.${FSNAME}-*.quota_resend_count | head -1)
- lctl set_param -n mdc.${FSNAME}-*.quota_resend_count 0
-
#define OBD_FAIL_MDS_QUOTACTL_NET 0x12e
lustre_fail mds 0x12e
lctl set_param timeout=$timeout
fi
- lctl set_param -n mdc.${FSNAME}-*.quota_resend_count $origin_resends
resetquota -u $TSTUSR
}
run_test_with_stat 29 "unhandled quotactls must not hang lustre client (19778) ========"