Skip to content

Commit

Permalink
test/storage: Add non-power-of-two sized storage check
Browse files Browse the repository at this point in the history
Signed-off-by: Wesley Hershberger <wesley.hershberger@canonical.com>
  • Loading branch information
MggMuggins committed May 10, 2024
1 parent 9afdd2f commit b8512a4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/suites/storage.sh
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,10 @@ test_storage() {
[ "$(lxc storage volume get "$storage_pool" "$storage_volume" snapshots.expiry)" = "3d" ]
lxc storage volume delete "$storage_pool" "$storage_volume"

# Ensure non-power-of-two sizes are rounded appropriately (most relevant for zfs)
lxc storage volume create "$storage_pool" "$storage_volume" --type=block size=13GB
lxc storage volume delete "$storage_pool" "$storage_volume"

lxc storage delete "$storage_pool"

# Test btrfs resize
Expand Down

0 comments on commit b8512a4

Please sign in to comment.