daemon: remove warning for overlay/overlay2 without d_type
commit 0abb8dec3f
removed support for
running overlay/overlay2 on top of a backing filesystem without d_type
support, and turned it into a fatal error when starting the daemon,
so there's no need to generate warnings for this situation.
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
parent
87f8be8110
commit
424a1c5d21
1 changed files with 0 additions and 21 deletions
|
@ -281,18 +281,6 @@ func fillDriverWarnings(v *types.Info) {
|
|||
v.Warnings = append(v.Warnings, msg)
|
||||
continue
|
||||
}
|
||||
if pair[0] == "Supports d_type" && pair[1] == "false" {
|
||||
backingFs := getBackingFs(v)
|
||||
|
||||
msg := fmt.Sprintf("WARNING: %s: the backing %s filesystem is formatted without d_type support, which leads to incorrect behavior.\n", v.Driver, backingFs)
|
||||
if backingFs == "xfs" {
|
||||
msg += " Reformat the filesystem with ftype=1 to enable d_type support.\n"
|
||||
}
|
||||
msg += " Running without d_type support will not be supported in future releases."
|
||||
|
||||
v.Warnings = append(v.Warnings, msg)
|
||||
continue
|
||||
}
|
||||
if pair[0] == "Extended file attributes" && pair[1] == "best-effort" {
|
||||
msg := fmt.Sprintf("WARNING: %s: extended file attributes from container images "+
|
||||
"will be silently discarded if the backing filesystem does not support them.\n"+
|
||||
|
@ -305,15 +293,6 @@ func fillDriverWarnings(v *types.Info) {
|
|||
}
|
||||
}
|
||||
|
||||
func getBackingFs(v *types.Info) string {
|
||||
for _, pair := range v.DriverStatus {
|
||||
if pair[0] == "Backing Filesystem" {
|
||||
return pair[1]
|
||||
}
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
// parseInitVersion parses a Tini version string, and extracts the "version"
|
||||
// and "git commit" from the output.
|
||||
//
|
||||
|
|
Loading…
Add table
Reference in a new issue