Merge pull request #225 from giuseppe/fuse-overlayfs-naive
overlay: force naiveDiff when using a mount program
This commit is contained in:
commit
f4127d28e4
|
|
@ -340,6 +340,10 @@ func supportsOverlay(home string, homeMagic graphdriver.FsMagic, rootUID, rootGI
|
||||||
|
|
||||||
func (d *Driver) useNaiveDiff() bool {
|
func (d *Driver) useNaiveDiff() bool {
|
||||||
useNaiveDiffLock.Do(func() {
|
useNaiveDiffLock.Do(func() {
|
||||||
|
if d.options.mountProgram != "" {
|
||||||
|
useNaiveDiffOnly = true
|
||||||
|
return
|
||||||
|
}
|
||||||
if err := doesSupportNativeDiff(d.home, d.options.mountOptions); err != nil {
|
if err := doesSupportNativeDiff(d.home, d.options.mountOptions); err != nil {
|
||||||
logrus.Warnf("Not using native diff for overlay, this may cause degraded performance for building images: %v", err)
|
logrus.Warnf("Not using native diff for overlay, this may cause degraded performance for building images: %v", err)
|
||||||
useNaiveDiffOnly = true
|
useNaiveDiffOnly = true
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue