echo "Start ost1..."
start ost1 $(ostdevname 1) $OST_MOUNT_OPTS
+ quota_init
wait_ost_reint "ug" || error "reintegration failed"
echo "Start ost1..."
start ost1 $(ostdevname 1) $OST_MOUNT_OPTS
+ quota_init
wait_ost_reint "ug" || error "reintegration failed"
echo "Restart ost to trigger reintegration..."
stop ost1
start ost1 $(ostdevname 1) $OST_MOUNT_OPTS
+ quota_init
wait_ost_reint "ug" || error "reintegration failed"
echo "Start mds..."
start mds1 $(mdsdevname 1) $MDS_MOUNT_OPTS
+ quota_init
wait_ost_reint "ug" || error "reintegration failed"
stopall
mount
setupall
+ quota_init
echo "Verify if quota is disabled"
qtype=$(mdt_quota_type)
qtype=$(ost_quota_type)
[ $qtype != "none" ] && error "ost quota setting is lost"
- quota_init
+ return 0
}
run_test 22 "enable/disable quota by 'lctl conf_param'"