quota_error a $TSTUSR "create failure, but expect success"
local trigger_time=$(date +%s)
- sync_all_data_mdts || true
- do_facet ost1 "lctl set_param -n osd*.*OST0000.force_sync=1"
+ do_facet mds1 $LCTL set_param -n osd*.*MDT0000.force_sync=1
local cur_time=$(date +%s)
[ $(($cur_time - $trigger_time)) -ge $grace ] &&
$RUNAS touch ${TESTFILE}_before ||
quota_error a $TSTUSR "failed create before timer expired," \
"but expect success. $trigger_time, $cur_time"
- sync_all_data_mdts || true
- do_facet ost1 "lctl set_param -n osd*.*OST0000.force_sync=1"
+ do_facet mds1 $LCTL set_param -n osd*.*MDT0000.force_sync=1
wait_grace_time $qtype "file"
$RUNAS createmany -m ${TESTFILE}_after_3 $((SOFT_LIMIT + 1)) &&
quota_error a $TSTUSR "create after timer expired," \
"but expect EDQUOT"
- sync_all_data_mdts || true
- do_facet ost1 "lctl set_param -n osd*.*OST0000.force_sync=1"
+ do_facet mds1 $LCTL set_param -n osd*.*MDT0000.force_sync=1
$SHOW_QUOTA_USER
$SHOW_QUOTA_GROUP
$RUNAS touch ${TESTFILE}_xxx ||
quota_error a $TSTUSR "touch after timer stop failure," \
"but expect success"
- sync_all_data_mdts || true
- do_facet ost1 "lctl set_param -n osd*.*OST0000.force_sync=1"
+ do_facet mds1 $LCTL set_param -n osd*.*MDT0000.force_sync=1
# cleanup
cleanup_quota_test