Skip to content
Snippets Groups Projects
Commit 453e1cee authored by tianzy's avatar tianzy
Browse files

Branch HEAD

fix a bug in test_10 in sanity-quota.sh
b=13170
i=green, wangdi
parent 953d3a88
No related branches found
No related tags found
No related merge requests found
......@@ -41,6 +41,12 @@ Frequency : Only for SLES9
Description: Kernel patches for SLES9 2.6.5-7.286 kernel
Details : Update target/ChangeLog/which_patch .
Severity : normal
Bugzilla : 13170
Frequency : Only for test_10 in sanity-quota.sh
Description: a bug in quota test code
Details : checking a test flag in a wrong place
--------------------------------------------------------------------------------
2007-08-10 Cluster File Systems, Inc. <info@clusterfs.com>
......
......@@ -54,7 +54,8 @@ int should_translate_quota (struct obd_import *imp)
ENTRY;
LASSERT(imp);
if (imp->imp_connect_data.ocd_connect_flags & OBD_CONNECT_QUOTA64)
if ((imp->imp_connect_data.ocd_connect_flags & OBD_CONNECT_QUOTA64) &&
!OBD_FAIL_CHECK(OBD_FAIL_QUOTA_QD_COUNT_32BIT))
RETURN(0);
else
RETURN(1);
......@@ -635,8 +636,7 @@ schedule_dqacq(struct obd_device *obd,
LASSERT(!should_translate_quota(qctxt->lqc_import) ||
qdata->qd_count <= MAX_QUOTA_COUNT32);
if (should_translate_quota(qctxt->lqc_import) ||
OBD_FAIL_CHECK(OBD_FAIL_QUOTA_QD_COUNT_32BIT))
if (should_translate_quota(qctxt->lqc_import))
{
struct qunit_data_old *reqdata_old, *tmp;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment