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

Some minor tidies #1571

Merged
merged 5 commits into from
Jun 20, 2019
Merged

Conversation

mulkieran
Copy link
Member

These are all more-or-less cherry-picked from a larger commit to refactor static header and size functionality within the metadata module into separate modules. Fixing/removing and then moving seems better than moving and then fixing/removing.

Get rid of a useless comment and make a better header comment.

Signed-off-by: mulhern <[email protected]>
These are generic reserved sectors, and the only definite relationship
that they have to the MDA is that they come immediately after it.

Signed-off-by: mulhern <[email protected]>
Don't make a 16 sector buffer when using only the first six sectors.

Signed-off-by: mulhern <[email protected]>
We're only doing due diligence by verifying that the metadata is correct,
anything less would be negligence. There isn't any real need to call it
out this way.

Signed-off-by: mulhern <[email protected]>
It passes the result from setup() through w/out change unless a static
header was succesfully read. This way, our code only handles the
interesting case, leaving the rest to well known methods of the Option
and Result types.

Signed-off-by: mulhern <[email protected]>
@mulkieran mulkieran merged commit 5c6cf4c into stratis-storage:master Jun 20, 2019
@mulkieran mulkieran deleted the master-refactor-prelim branch June 20, 2019 15:32
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