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(filesystem): make filesystem formating idempotent #93

Merged
merged 1 commit into from
Oct 10, 2023

Conversation

peknur
Copy link
Contributor

@peknur peknur commented Oct 9, 2023

  • make filesystem formating idempotent
  • check that all system tools are available when creating new Linux filesystem instance
  • wait until server is in started state when attaching and detaching storage devices
  • improve filesystem error reporting

- make filesystem formating idempotent
- check that all system tools are available when creating new Linux
  filesystem instance
- wait until server is in `started` state when attaching and detaching storage
  devices
- improve filesystem error reporting
@@ -30,19 +33,25 @@ type LinuxFilesystem struct {
filesystemTypes []string
}

func NewLinuxFilesystem(filesystemTypes []string, log *logrus.Entry) *LinuxFilesystem {
func NewLinuxFilesystem(filesystemTypes []string, log *logrus.Entry) (*LinuxFilesystem, error) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Nice addition with more error handling!

@peknur peknur merged commit 1d65a40 into main Oct 10, 2023
2 checks passed
@peknur peknur deleted the fix/filesystem-format-idempotency branch October 10, 2023 06:41
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