setup_quota(){
local mntpt=$1
+ if [ "$USE_OFD" = "yes" ]; then
+ $LFS quotacheck $mntpt || error "quotacheck failed"
+ return
+ fi
+
# We need save the original quota_type params, and restore them after testing
# Suppose that quota type the same on mds and ost
osc_ensure_active $SINGLEMDS $TIMEOUT
osc_ensure_active client $TIMEOUT
- if [ $QUOTA_AUTO -ne 0 ] && [ "$USE_OFD" != yes ]; then
+ if [ $QUOTA_AUTO -ne 0 ]; then
if [ "$ENABLE_QUOTA" ]; then
echo "enable quota as required"
setup_quota $MOUNT || return 2