Feature Request: Use reflinks to copy profile data

Bug #2012009 reported by Marian Sigler
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
snapd
New
Undecided
Unassigned

Bug Description

When upgrading a snap, say, from version 123 to version 124, the contents of `~/snap/snapname/123` are copied to `~/snap/snapname/124`. (As far as I know, this is to allow rollbacks.)

However, the copy seems to be a "classic" one where every single bit is duplicated. On Cow filesystems such as btrfs, more efficient reflink copies are available (where data is only duplicated later when one of the copies is modified).

I propose snap use these. It'd make the update a lot quicker, and it'd save a lot of disk space.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.