Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

volume: extend preallocate small fixes #381

Merged
merged 3 commits into from
Feb 27, 2023

Conversation

aesteve-rh
Copy link
Member

Small fixes over #379

Volume cannot be a different format than
cow or raw, therefore checking for it in
a condition is not necessary.

Signed-off-by: Albert Esteve <aesteve@redhat.com>
@aesteve-rh aesteve-rh self-assigned this Feb 27, 2023
Change extend skip condition (and msg),
so that it better reflects the intent.

We want to skip the extend call based on
the allocation type and not the format,
so that we skip sparse volumes

Signed-off-by: Albert Esteve <aesteve@redhat.com>
ahadas
ahadas previously approved these changes Feb 27, 2023
nirs
nirs previously approved these changes Feb 27, 2023
tests/storage/blocksd_test.py Outdated Show resolved Hide resolved
Current extend_volume_skipped test checks
only that the volume remains under the original
capacity. While this covers the usecase of
the volume not being extended to the new
capacity, it does not check that the volume
size has not changed.

We can make the check more precise with
little effort.

Fixes: a558d52
Signed-off-by: Albert Esteve <aesteve@redhat.com>
@aesteve-rh aesteve-rh merged commit 2540c1d into oVirt:master Feb 27, 2023
@aesteve-rh aesteve-rh deleted the aesteve/extend-review branch February 27, 2023 14:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants