# inode->i_blkbits = min(PTLRPC_MAX_BRW_BITS+1, LL_MAX_BLKSIZE_BITS);
blksize=$((1 << 21)) # 2Mb
size_file=$((GB * 9 / 2))
-# this check is just for test9 and test10
+# this check is just for test_9
OST0_MIN=4900000 #4.67G
check_whether_skip () {
OST0_SIZE=`$LFS df $DIR | awk '/\[OST:0\]/ {print $4}'`
quota_show_check a g $TSTUSR
echo " Set stripe"
- $LFS setstripe $TESTFILE -c 1
+ $LFS setstripe $TESTFILE -c 1 -i 0
touch $TESTFILE
chown $TSTUSR.$TSTUSR $TESTFILE
sleep 3
quota_show_check b u $TSTUSR
- $LFS setstripe $TESTFILE -c 1
+ $LFS setstripe $TESTFILE -c 1 -i 0
chown $TSTUSR.$TSTUSR $TESTFILE
log " Step1: trigger quota with 0_DIRECT"
}
test_23() {
- log "run for $((OSTCOUNT * 4))MB test file"
- test_23_sub $((OSTCOUNT * 4 * 1024))
+ local slave_cnt=$((OSTCOUNT + 1)) # 1 mds, n osts
+
+ OST0_MIN=$((6 * $slave_cnt * 1024)) # extra space for meta blocks.
+ check_whether_skip && return 0
+ log "run for $((4 * $slave_cnt))MB test file"
+ test_23_sub $((4 * $slave_cnt * 1024))
- OST0_MIN=120000
+ OST0_MIN=$((60 * $slave_cnt * 1024)) # extra space for meta blocks.
check_whether_skip && return 0
- log "run for $((OSTCOUNT * 40))MB test file"
- test_23_sub $((OSTCOUNT * 40 * 1024))
+ log "run for $((40 * $slave_cnt))MB test file"
+ test_23_sub $((40 * $slave_cnt * 1024))
}
run_test_with_stat 23 "run for fixing bug16125 ==========="