Deduplicating bundled content in snaps

Registered by Daniel Holbach

This blueprint has been superseded. See the newer blueprint "Ubuntu Snappy: next steps" for updated plans.

A snappy package contains all its dependencies including all shared libraries.

To avoid storing and downloading identical files multiple times we will use the file hash information we have.

On the FS side we can simply hardlink identical files to a place like /apps/.data/ (with multiple subdirs).

On the download side we need to get the hashes.yaml from the store first and evaluate this and then only download the files we do not already have. For this the easiest option is to to have a /apps/.data/ directory (probably with a bunch of subdirs so that its not one huge directory).

Blueprint information

Status:
Complete
Approver:
Alexander Sack
Priority:
Undefined
Drafter:
Michael Vogt
Direction:
Needs approval
Assignee:
None
Definition:
Superseded
Series goal:
Accepted for wily
Implementation:
Unknown
Milestone target:
None
Completed by
Daniel Holbach

Related branches

Sprints

Whiteboard

(?)

Work Items

This blueprint contains Public information 
Everyone can see this information.