Skip to content

Conversation

@gthvn1
Copy link
Contributor

@gthvn1 gthvn1 commented Jan 20, 2026

This patch adds a helper to compute the free space on a SR. It is used to check that the suspend SR has enough space when creating a snapshot with memory. If there is not enough space, SR_SUSPEND_SPACE_INSUFFICIENT is raised.

This is a backport of #6838

This patch adds a helper to compute the free space on a SR. It is used to
check that the suspend SR has enough space when creating a snapshot with
memory. If there is not enough space, SR_SUSPEND_SPACE_INSUFFICIENT is raised.

Signed-off-by: Guillaume <[email protected]>
error Api_errors.sr_suspend_space_insufficient ["sr"]
~doc:
"The suspend SR does not have sufficient free space to store the VM \
suspend image required to complete a snapshot with memory."
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be a little more general, because the error is user not just for checkpoint, but also suspend. I would just remove the last part of the sentence ("required to complete a snapshot with memory").

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a backport of a PR that was already merged into master. Should probably have another PR into master with this fix then?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should probably have another PR into master with this fix then?

I think so, yes

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The PR for master: #6851

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants