mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
LCOW: Re-coalesce stores
Signed-off-by: John Howard <jhoward@microsoft.com> The re-coalesces the daemon stores which were split as part of the original LCOW implementation. This is part of the work discussed in https://github.com/moby/moby/issues/34617, in particular see the document linked to in that issue.
This commit is contained in:
parent
6feae06003
commit
ce8e529e18
66 changed files with 549 additions and 635 deletions
|
@ -2,7 +2,10 @@
|
|||
|
||||
package layer
|
||||
|
||||
import "testing"
|
||||
import (
|
||||
"runtime"
|
||||
"testing"
|
||||
)
|
||||
|
||||
func graphDiffSize(ls Store, l Layer) (int64, error) {
|
||||
cl := getCachedLayer(l)
|
||||
|
@ -10,7 +13,7 @@ func graphDiffSize(ls Store, l Layer) (int64, error) {
|
|||
if cl.parent != nil {
|
||||
parent = cl.parent.cacheID
|
||||
}
|
||||
return ls.(*layerStore).driver.DiffSize(cl.cacheID, parent)
|
||||
return ls.(*layerStore).drivers[runtime.GOOS].DiffSize(cl.cacheID, parent)
|
||||
}
|
||||
|
||||
// Unix as Windows graph driver does not support Changes which is indirectly
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue