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

Storage: Fix hang when BTRFS receive fails in RefreshVolume #13095

Merged
merged 7 commits into from Mar 11, 2024

Conversation

tomponline
Copy link
Member

@tomponline tomponline commented Mar 11, 2024

Same as approach in ZFS driver's CreateVolumeFromCopy function:

https://github.com/canonical/lxd/blob/main/lxd/storage/drivers/driver_zfs_volumes.go#L723-L765

Related to #13085

@tomponline tomponline changed the title lxd/storage/drivers/driver/btrfs/volumes: Fix hang when btrfs receive fails in RefreshVolume Storage: Fix hang when btrfs receive fails in RefreshVolume Mar 11, 2024
@tomponline tomponline self-assigned this Mar 11, 2024
@tomponline tomponline changed the title Storage: Fix hang when btrfs receive fails in RefreshVolume Storage: Fix hang when BTRFS receive fails in RefreshVolume Mar 11, 2024
@tomponline tomponline force-pushed the tp-btrfs branch 2 times, most recently from 789a468 to d708823 Compare March 11, 2024 11:29
Copy link
Contributor

@roosterfish roosterfish left a comment

Choose a reason for hiding this comment

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

Same comment as for the Btrfs one, besides this looking good!

lxd/storage/drivers/driver_zfs_volumes.go Outdated Show resolved Hide resolved
roosterfish
roosterfish previously approved these changes Mar 11, 2024
…lumeFromCopy

Signed-off-by: Thomas Parrott <thomas.parrott@canonical.com>
…together in CreateVolumeFromCopy

Signed-off-by: Thomas Parrott <thomas.parrott@canonical.com>
… in CreateVolumeFromCopy

As sender has by definition already ended.

Signed-off-by: Thomas Parrott <thomas.parrott@canonical.com>
…reateVolumeFromCopy

Signed-off-by: Thomas Parrott <thomas.parrott@canonical.com>
… fails in RefreshVolume

Signed-off-by: Thomas Parrott <thomas.parrott@canonical.com>
… RefreshVolume

Signed-off-by: Thomas Parrott <thomas.parrott@canonical.com>
…FS driver

For consistency.

Signed-off-by: Thomas Parrott <thomas.parrott@canonical.com>
Copy link
Contributor

@roosterfish roosterfish left a comment

Choose a reason for hiding this comment

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

LGTM!

@tomponline tomponline merged commit 20d3c6a into canonical:main Mar 11, 2024
28 checks passed
@tomponline tomponline deleted the tp-btrfs branch March 11, 2024 15:39
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.

None yet

2 participants