mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
remove deprecated support for overlay(2) on backing FS without d_type (fstype=1)
Support for overlay on a backing filesystem without d_type was deprecated in0abb8dec3f
(Docker 17.12), with an exception for existing installations (0a4e793a3d
). That deprecation was nearly 5 years ago, and running without d_type is known to cause serious issues (so users will likely already have run into other problems). This patch removes support for running overlay and overlay2 on these filesystems, returning the error instead of logging it. Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
parent
a461373146
commit
d570bc4922
2 changed files with 2 additions and 10 deletions
|
@ -147,11 +147,7 @@ func Init(home string, options []string, idMap idtools.IdentityMapping) (graphdr
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
if !supportsDType {
|
if !supportsDType {
|
||||||
if !graphdriver.IsInitialized(home) {
|
return nil, overlayutils.ErrDTypeNotSupported("overlay", backingFs)
|
||||||
return nil, overlayutils.ErrDTypeNotSupported("overlay", backingFs)
|
|
||||||
}
|
|
||||||
// allow running without d_type only for existing setups (#27443)
|
|
||||||
logrus.WithField("storage-driver", "overlay").Warn(overlayutils.ErrDTypeNotSupported("overlay", backingFs))
|
|
||||||
}
|
}
|
||||||
|
|
||||||
currentID := idtools.CurrentIdentity()
|
currentID := idtools.CurrentIdentity()
|
||||||
|
|
|
@ -156,11 +156,7 @@ func Init(home string, options []string, idMap idtools.IdentityMapping) (graphdr
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
if !supportsDType {
|
if !supportsDType {
|
||||||
if !graphdriver.IsInitialized(home) {
|
return nil, overlayutils.ErrDTypeNotSupported("overlay2", backingFs)
|
||||||
return nil, overlayutils.ErrDTypeNotSupported("overlay2", backingFs)
|
|
||||||
}
|
|
||||||
// allow running without d_type only for existing setups (#27443)
|
|
||||||
logger.Warn(overlayutils.ErrDTypeNotSupported("overlay2", backingFs))
|
|
||||||
}
|
}
|
||||||
|
|
||||||
cur := idtools.CurrentIdentity()
|
cur := idtools.CurrentIdentity()
|
||||||
|
|
Loading…
Reference in a new issue