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

End-to end checksum data #2988

Open
drbasic opened this issue Feb 7, 2025 · 1 comment
Open

End-to end checksum data #2988

drbasic opened this issue Feb 7, 2025 · 1 comment

Comments

@drbasic
Copy link
Collaborator

drbasic commented Feb 7, 2025

It is necessary to check the checksums of the data that is being read and written.

  1. When receiving write data from the client, you need to calculate the checksum and make sure that data with the same checksum is written to disk.
  2. When reading data, you need to know (or at least calculate the checksum) and verify this checksum before giving the data to the client.
@drbasic
Copy link
Collaborator Author

drbasic commented Feb 7, 2025

At the first stage, we calculate the checksum of the buffer of data received from the client before the start of writing and after the data is written. If the checksum has changed, it means that the client is spoiling the buffer and it is necessary to repeat the writing, having previously copied the buffer to another location.
#2985

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

No branches or pull requests

1 participant