Whamcloud - gitweb
LU-17046 tests: fix write success in 1g 38/53038/6
authorSergey Cheremencev <scherementsev@ddn.com>
Sun, 5 Nov 2023 00:37:54 +0000 (04:37 +0400)
committerOleg Drokin <green@whamcloud.com>
Thu, 30 Nov 2023 16:38:01 +0000 (16:38 +0000)
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 <scherementsev@ddn.com>
Change-Id: Ice5152fa4ba8504eda2ea5513201e340c5ff6220
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/53038
Reviewed-by: James Simmons <jsimmons@infradead.org>
Reviewed-by: Timothy Day <timday@amazon.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
lustre/tests/sanity-quota.sh

index 028e9f2..718a954 100755 (executable)
@@ -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"