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

Add failsafe for drives that can't be read #60

Merged
merged 1 commit into from
Jan 4, 2016
Merged

Add failsafe for drives that can't be read #60

merged 1 commit into from
Jan 4, 2016

Conversation

RB14060
Copy link
Contributor

@RB14060 RB14060 commented Dec 22, 2015

In some rare cases, drive information cannot be automatically read by smartctl, as is the case with issue #59. This adds a failsafe that errs on the side of caution in case this drive actually is an SSD.

@nemchik
Copy link
Contributor

nemchik commented Dec 22, 2015

Just wanted to link this here because I see your use of ERRORLEVEL and it may be related to the discussion.

@RB14060
Copy link
Contributor Author

RB14060 commented Dec 22, 2015

The only reason I did it with ERRORLEVEL is that Vocatus likes to maintain a consistent coding style across all of Tron and he will reject pull requests that are not in line with his style. If he or you wishes to rewrite it to make it work better then my code can be updated as well once the PR is merged.

@vocatus
Copy link
Contributor

vocatus commented Jan 4, 2016

Good fix, thanks.

vocatus added a commit that referenced this pull request Jan 4, 2016
Add failsafe for drives that can't be read
@vocatus vocatus merged commit 1157096 into bmrf:master Jan 4, 2016
@RB14060 RB14060 deleted the hdd-detection-failsafe branch January 4, 2016 16:26
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.

3 participants