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

do not try to resize block volumes #294

Merged
merged 1 commit into from
Oct 8, 2024
Merged

do not try to resize block volumes #294

merged 1 commit into from
Oct 8, 2024

Conversation

WanzenBug
Copy link
Member

Block volumes cannot be resized, so there is no point in even attempting it. An attempt would fail because it could not determine the FS one the volume, as there likely isn't any. A retry would then succeed as there is an earlier check if we need to mount at all.

The fix is to rearrange the logic to only attempt to resize filesystem volumes.

While at it, also remove the deprecated "IsNotMountPoint". The double negative was getting confusing in any case.

@WanzenBug WanzenBug requested a review from rck October 7, 2024 09:21
Block volumes cannot be resized, so there is no point in even attempting it.
An attempt would fail because it could not determine the FS one the volume, as
there likely isn't any. A retry would then succeed as there is an earlier check
if we need to mount at all.

The fix is to rearrange the logic to only attempt to resize filesystem volumes.

While at it, also remove the deprecated "IsNotMountPoint". The double negative
was getting confusing in any case.

Signed-off-by: Moritz Wanzenböck <[email protected]>
Copy link
Member

@rck rck left a comment

Choose a reason for hiding this comment

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

LGTM

@rck rck merged commit 798b960 into master Oct 8, 2024
5 checks passed
@rck rck deleted the fix-block-resize branch October 8, 2024 09:08
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.

2 participants