Skip to content

Fix determination of target path for storage volume file mount command#2683

Merged
stgraber merged 1 commit intolxc:mainfrom
presztak:mount_file
Nov 21, 2025
Merged

Fix determination of target path for storage volume file mount command#2683
stgraber merged 1 commit intolxc:mainfrom
presztak:mount_file

Conversation

@presztak
Copy link
Copy Markdown
Contributor

storage volume file mount requires at least two arguments (storage and volume), so the previous targetPath determination was incorrect. As a result, os.Stat was executed on the volume name, because it was incorrectly treated as the targetPath.

Fixes: #2681

@presztak presztak requested a review from stgraber as a code owner November 21, 2025 21:15
@stgraber stgraber enabled auto-merge November 21, 2025 21:19
@stgraber stgraber disabled auto-merge November 21, 2025 22:28
@stgraber stgraber merged commit 1115779 into lxc:main Nov 21, 2025
36 of 38 checks passed
@presztak presztak deleted the mount_file branch November 22, 2025 18:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

Cannot create listener for custom storage volume

2 participants