Skip to content

Commit f9c159a

Browse files
committed
fixups for overlay2
Signed-off-by: Antonio Murdaca <runcom@redhat.com>
1 parent 2e2cdd4 commit f9c159a

1 file changed

Lines changed: 8 additions & 6 deletions

File tree

daemon/graphdriver/overlay2/overlay.go

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -84,12 +84,13 @@ type overlayOptions struct {
8484

8585
// Driver contains information about the home directory and the list of active mounts that are created using this driver.
8686
type Driver struct {
87-
home string
88-
uidMaps []idtools.IDMap
89-
gidMaps []idtools.IDMap
90-
ctr *graphdriver.RefCounter
91-
quotaCtl *graphdriver.QuotaCtl
92-
options overlayOptions
87+
home string
88+
uidMaps []idtools.IDMap
89+
gidMaps []idtools.IDMap
90+
ctr *graphdriver.RefCounter
91+
quotaCtl *graphdriver.QuotaCtl
92+
options overlayOptions
93+
naiveDiff graphdriver.Driver
9394
}
9495

9596
var (
@@ -181,6 +182,7 @@ func Init(home string, options []string, uidMaps, gidMaps []idtools.IDMap) (grap
181182

182183
logrus.Debugf("backingFs=%s, projectQuotaSupported=%v", backingFs, projectQuotaSupported)
183184

185+
d.naiveDiff = graphdriver.NewNaiveDiffDriver(d, uidMaps, gidMaps)
184186
return d, nil
185187
}
186188

0 commit comments

Comments
 (0)