From de352465eb6a02aeb20357208c54e903585e12e3 Mon Sep 17 00:00:00 2001 From: Sergey Cheremencev Date: Sun, 5 Nov 2023 04:37:54 +0400 Subject: [PATCH] LU-17046 tests: fix write success in 1g Increase latest write count in 3 times. This may happen that the previous write didn't write requested amount of data. For example, if it had to write 20MB, but wrote only 17, the final write need to write at least 3MB to hit EDQUOT. If there are only 2 OSTs it writes only 19MB(17+2) and can't hit EDQUOT. Test-Parameters: trivial testlist=sanity-quota Test-Parameters: trivial testlist=sanity-quota Test-Parameters: trivial testlist=sanity-quota Signed-off-by: Sergey Cheremencev Change-Id: Ice5152fa4ba8504eda2ea5513201e340c5ff6220 Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/53038 Reviewed-by: James Simmons Reviewed-by: Timothy Day Reviewed-by: Oleg Drokin Tested-by: jenkins Tested-by: Maloo --- lustre/tests/sanity-quota.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lustre/tests/sanity-quota.sh b/lustre/tests/sanity-quota.sh index 028e9f2..718a954 100755 --- a/lustre/tests/sanity-quota.sh +++ b/lustre/tests/sanity-quota.sh @@ -1131,7 +1131,7 @@ test_1g() { cancel_lru_locks osc sync; sync_all_data || true sleep 5 - $RUNAS $DD of=$testfile count=$OSTCOUNT seek=$limit && + $RUNAS $DD of=$testfile count=$((OSTCOUNT*3)) seek=$limit && quota_error u $TSTUSR \ "user write success, but expect EDQUOT" -- 1.8.3.1