-
Notifications
You must be signed in to change notification settings - Fork 259
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
Rework merkle tree implementation to use io.Reader instead of byte array #1209
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
anmaxvl
force-pushed
the
merkle-tree-with-io-reader
branch
from
October 27, 2021 07:06
b3a2950
to
44d0864
Compare
FYI @SeanTAllen |
anmaxvl
force-pushed
the
merkle-tree-with-io-reader
branch
from
October 27, 2021 07:22
44d0864
to
9cce66a
Compare
dcantah
reviewed
Oct 27, 2021
Planning to look at this later today |
kevpar
reviewed
Oct 27, 2021
kevpar
reviewed
Oct 27, 2021
dcantah
reviewed
Oct 28, 2021
dcantah
reviewed
Oct 28, 2021
dcantah
reviewed
Oct 28, 2021
anmaxvl
force-pushed
the
merkle-tree-with-io-reader
branch
from
October 28, 2021 18:31
5f71418
to
4d2e604
Compare
@dcantah up 😄, @microsoft/containerplat more eyes are welcome |
msscotb
reviewed
Nov 3, 2021
test/vendor/github.com/Microsoft/hcsshim/ext4/tar2ext4/tar2ext4.go
Show resolved
Hide resolved
test/vendor/github.com/Microsoft/hcsshim/ext4/tar2ext4/tar2ext4.go
Show resolved
Hide resolved
anmaxvl
force-pushed
the
merkle-tree-with-io-reader
branch
2 times, most recently
from
November 5, 2021 00:05
fe6df3b
to
378b9d7
Compare
dcantah
reviewed
Nov 5, 2021
msscotb
approved these changes
Nov 9, 2021
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
MerkleTree implementation requires the entire content of ext4 file system to be read into a byte array when computing cryptographic digest. This PR reworks the existing implementation to work with io.Reader interface instead. Additionally update the existing usages of MerkleTree with the new MerkleTreeWithReader implementation. Signed-off-by: Maksim An <[email protected]>
Signed-off-by: Maksim An <[email protected]>
Separate tar to ext4 logic of Convert into a ConvertTarToExt4 function. Signed-off-by: Maksim An <[email protected]>
Signed-off-by: Maksim An <[email protected]>
anmaxvl
force-pushed
the
merkle-tree-with-io-reader
branch
from
November 10, 2021 01:37
378b9d7
to
a02bdf5
Compare
dcantah
approved these changes
Nov 10, 2021
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
awesome |
anmaxvl
pushed a commit
to anmaxvl/hcsshim
that referenced
this pull request
Nov 17, 2021
Related work items: microsoft#1067, microsoft#1097, microsoft#1119, microsoft#1170, microsoft#1176, microsoft#1180, microsoft#1181, microsoft#1182, microsoft#1183, microsoft#1184, microsoft#1185, microsoft#1186, microsoft#1187, microsoft#1188, microsoft#1189, microsoft#1191, microsoft#1193, microsoft#1194, microsoft#1195, microsoft#1196, microsoft#1197, microsoft#1200, microsoft#1201, microsoft#1202, microsoft#1203, microsoft#1204, microsoft#1205, microsoft#1206, microsoft#1207, microsoft#1209, microsoft#1210, microsoft#1211, microsoft#1218, microsoft#1219, microsoft#1220, microsoft#1223
princepereira
pushed a commit
to princepereira/hcsshim
that referenced
this pull request
Aug 29, 2024
…ray (microsoft#1209) MerkleTree implementation requires the entire content of ext4 file system to be read into a byte array when computing cryptographic digest. This PR reworks the existing implementation to work with io.Reader interface instead. Additionally update the existing usages of MerkleTree with the new MerkleTreeWithReader implementation. Separate tar to ext4 logic of Convert into a ConvertTarToExt4 function. Signed-off-by: Maksim An <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
MerkleTree implementation requires the entire content of ext4 file
system to be read into a byte array when computing cryptographic digest.
This PR reworks the existing implementation to work with io.Reader
interface instead.
Additionally update the existing usages of MerkleTree with the new
MerkleTreeWithReader implementation.
Signed-off-by: Maksim An [email protected]