Skip to content

Commit

Permalink
Merge pull request #155 from yizhanglinux/blktests-throtl-max-sectors…
Browse files Browse the repository at this point in the history
…-update

throtl/{002,003}: update max_sectors setting

Link: #155
  • Loading branch information
kawasaki authored Dec 17, 2024
2 parents 22f21d6 + 60fa2e3 commit 9dffc45
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
6 changes: 5 additions & 1 deletion tests/throtl/002
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,11 @@ QUICK=1
test() {
echo "Running ${TEST_NAME}"

if ! _set_up_throtl max_sectors=8; then
local page_size max_secs
page_size=$(getconf PAGE_SIZE)
max_secs=$((page_size / 512))

if ! _set_up_throtl max_sectors="${max_secs}"; then
return 1;
fi

Expand Down
6 changes: 5 additions & 1 deletion tests/throtl/003
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,11 @@ QUICK=1
test() {
echo "Running ${TEST_NAME}"

if ! _set_up_throtl max_sectors=8; then
local page_size max_secs
page_size=$(getconf PAGE_SIZE)
max_secs=$((page_size / 512))

if ! _set_up_throtl max_sectors="${max_secs}"; then
return 1;
fi

Expand Down

0 comments on commit 9dffc45

Please sign in to comment.