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

fix: add alternative block device path #49

Merged
merged 1 commit into from
Dec 12, 2024

Conversation

SLH335
Copy link
Member

@SLH335 SLH335 commented Dec 12, 2024

This PR adds support for alternative block device paths. Currently, the driver only searches for virtio block devices which causes the mounting to fail if a different path is used. With this patch, support for scsi devices is added and additional path formats can be added easily if required in the future.

@jgraichen
Copy link
Member

Thanks! Looks excellent 👍

@jgraichen jgraichen merged commit 168ffcd into openhpi-cloud:main Dec 12, 2024
1 check passed

if err != nil {
logger.WithError(err).Error("Expected block device not found")
return nil, fmt.Errorf("Block device not found: %s", dev)
logger.WithError(err).Error("Block device not found")
Copy link
Member

Choose a reason for hiding this comment

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

Maybe as a later change: Do we want to list which devices were checked here? So that user getting this error message knows what to look for?

@SLH335 SLH335 deleted the block-device-paths branch December 13, 2024 17:04
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