Explorar o código

daemon: remove warning for overlay/overlay2 without d_type

commit 0abb8dec3f730f3ad2cc9a161c97968a6bfd0631 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>
Sebastiaan van Stijn %!s(int64=2) %!d(string=hai) anos
pai
achega
424a1c5d21
Modificáronse 1 ficheiros con 0 adicións e 21 borrados
  1. 0 21
      daemon/info_unix.go

+ 0 - 21
daemon/info_unix.go

@@ -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.
 //