You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When making changes, always hard linking old versions to the current will result in all previous versions (1.root, 2.root, etc) pointing to the current (root.json).
Writing the consistent version and then linking the current to that (e.g. linking root.json -> 3.root.json) should work, but requires more changes because now "write current" doesn't happen in every case. Holding two copies is a small constant increase in storage (#versions -> #versions + 1)
Either solution is fine, I left the commented code to remind myself about the issue and clearly forgot to come back to it!
We probably want to support the second solution (for clients / devices with limited space). Creating a true copy or a hard link should also probably be an option (i.e., tuf.conf.consistent_method = copy (or link)).
Did this get addressed? We discussed this a long ways back.
On Thu, Sep 29, 2016 at 10:02 AM, Vladimir Diaz [email protected]
wrote:
A contributor reports:
When making changes, always hard linking old versions to the current will
result in all previous versions (1.root, 2.root, etc) pointing to the
current (root.json).
Writing the consistent version and then linking the current to that (e.g.
linking root.json -> 3.root.json) should work, but requires more changes
because now "write current" doesn't happen in every case. Holding two
copies is a small constant increase in storage (#versions -> #versions + 1)
Either solution is fine, I left the commented code to remind myself about
the issue and clearly forgot to come back to it!
We probably want to support the second solution (for clients / devices
with limited space). Creating a true copy or a hard link should also
probably be an option (i.e., tuf.conf.consistent_method = copy (or link)).
Activity
JustinCappos commentedon Oct 18, 2016
Did this get addressed? We discussed this a long ways back.
On Thu, Sep 29, 2016 at 10:02 AM, Vladimir Diaz [email protected]
wrote:
Partial implmentation for issue theupdateframework#374
vladimir-v-diaz commentedon Oct 18, 2016
I partially implemented this here: https://github.com/vladimir-v-diaz/tuf/blob/ecordell-root-versioning/tuf/repository_lib.py#L2015-L2047. The fix points
root.jsonto specific consistent snapshots.@kwang100 is working on the configurable option to either create a copy of the consistent snapshot, or a link to it.
Consistent snapshots are now written as follows:
1. Add new configuration "CONSISTENT_METHOD" to indicate which method…
1. Add new configuration "CONSISTENT_METHOD" to indicate which method…
vladimir-v-diaz commentedon Oct 26, 2016
This issue has now been fully addressed. Remaining feature (option to use either a hard link or file copy) merged in PR #385
[-]Linking or copying consistent snapshots[/-][+]Linking or copying consistent metadata[/+]