Skip to content

Commit

Permalink
test/suites/storage: tune quota values
Browse files Browse the repository at this point in the history
Signed-off-by: Simon Deziel <[email protected]>
  • Loading branch information
simondeziel committed Jul 9, 2024
1 parent ea2666c commit e716c43
Showing 1 changed file with 7 additions and 18 deletions.
25 changes: 7 additions & 18 deletions test/suites/storage.sh
Original file line number Diff line number Diff line change
Expand Up @@ -755,24 +755,13 @@ test_storage() {
)

# Test applying quota (expected size ranges are in KB and have an allowable range to account for allocation variations).
QUOTA1="10GB"
rootMinKB1="9456000"
rootMaxKB1="9999999"

QUOTA2="11GB"
rootMinKB2="10402000"
rootMaxKB2="10744999"

if [ "$lxd_backend" = "lvm" ]; then
QUOTA1="20MB"
rootMinKB1="14000"
rootMaxKB1="20000"

# Increase quota enough to require a new 4MB LVM extent.
QUOTA2="25MB"
rootMinKB2="19000"
rootMaxKB2="23000"
fi
QUOTA1="20MiB"
rootMinKB1="13800"
rootMaxKB1="23000"

QUOTA2="25MiB"
rootMinKB2="18900"
rootMaxKB2="28000"

if [ "$lxd_backend" != "dir" ]; then
lxc launch testimage quota1
Expand Down

0 comments on commit e716c43

Please sign in to comment.