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

Include crypt metadata in total_physical_used #3678

Merged

Conversation

mulkieran
Copy link
Member

Related #3663

@mulkieran mulkieran self-assigned this Aug 27, 2024
@mulkieran mulkieran force-pushed the fix-missing-crypt-metadata branch 5 times, most recently from a30f74c to a3e57a1 Compare August 27, 2024 19:57
@mulkieran mulkieran marked this pull request as ready for review August 28, 2024 00:55
@mulkieran mulkieran force-pushed the fix-missing-crypt-metadata branch 3 times, most recently from e3dead6 to 42b7a7d Compare August 28, 2024 02:09
Revise datatier_metadata_size so that it returns a value that includes
the crypt metadata allocation.

Introduce a new method for the crypt_metadata_size.

Remove testing-only data_alloc_size() method, but have
datatier_allocated_size() return what data_alloc_size() method returned
previously. This changes the result, to not include the crypt meta
allocs. This change balances out the datatier_metadata_size change.

Change datatier_usable_size() to use backstore methods to calculate the
same result as formerly.

Change available_in_backstore to use backstore methods to calculate the
same result as formerly.

This change corrects problems with the D-Bus values being wrong or the
D-Bus signals sending out an updated value that does not properly match
the D-Bus value.

It also allows to restore one test in thinpool to its original.

Signed-off-by: mulhern <[email protected]>
Use the newly revised datatier_allocated_size() method in place of an
expression.

Add a new equality, that depends for correctness on the previous commit.

Signed-off-by: mulhern <[email protected]>
@mulkieran mulkieran force-pushed the fix-missing-crypt-metadata branch from 42b7a7d to 9435cc3 Compare August 28, 2024 17:03
@mulkieran mulkieran merged commit 03a8059 into stratis-storage:master Aug 29, 2024
49 checks passed
@mulkieran mulkieran deleted the fix-missing-crypt-metadata branch August 29, 2024 02:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Status: Done
Development

Successfully merging this pull request may close these issues.

1 participant