containerd/rootfs
Daniel Canter a91c298d1d Optimize Windows and LCOW snapshotters to only create scratch layer on the final snapshot
For LCOW currently we copy (or create) the scratch.vhdx for every single snapshot
so there ends up being a sandbox.vhdx in every directory seemingly unnecessarily. With the default scratch
size of 20GB the size on disk is about 17MB so there's a 17MB overhead per layer plus the time to copy the
file with every snapshot. Only the final sandbox.vhdx is actually used so this would be a nice little
optimization.

For WCOW we essentially do the exact same except copy the blank vhdx from the base layer.

Signed-off-by: Daniel Canter <dcanter@microsoft.com>
2020-11-30 16:25:38 -08:00
..
apply.go Optimize Windows and LCOW snapshotters to only create scratch layer on the final snapshot 2020-11-30 16:25:38 -08:00
diff.go rootfs: use new ctx to cleanup instead of canceled one 2019-08-27 11:27:34 +08:00
init_linux.go Licence header added 2018-02-19 10:32:26 +09:00
init_other.go Licence header added 2018-02-19 10:32:26 +09:00
init.go Use user-specific temp directory if set 2018-05-04 10:27:58 +01:00