Fix Footer to make it compatible with RFC1952 #190
Merged
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.
This commit reflects the recent change on eStargz's footer format for making it
compatible with RFC1952[0].
Since this commit the footer is the following 51 bytes:
According to RFC1952, Extra field is defined as the following (quoted from [1]):
This commit adds SI1, SI2 and LEN fields to Extra field, which are lacked in the
stargz. As SI1 and SI2, we use (SI1, SI2) = ('S', 'G') for eStargz footer.
(P.S. ('A', 'P') is used by "Apollo file type information"[1] and ('R', 'A') is
used by dictzip[2])
Notes:
tar.gz). Images provided by this commit's
ctr-remote
cannot be lazily pulledby the stargz snapshotter before this commit.
--stargz-only
option is alsodeprecated since this commit. Users should use
--no-optimize
option instead.Snapshotter plugin (i.e. it can lazily pull eStargz images older than this
commit).
Some minor changes for making linter happy are also included in this patch.
[0] https://tools.ietf.org/html/rfc1952
[1] https://tools.ietf.org/html/rfc1952#section-2.3.1.1
[2] https://linux.die.net/man/1/dictzip
Signed-off-by: Kohei Tokunaga ktokunaga.mail@gmail.com