Tizen_4.0 base
[platform/upstream/docker-engine.git] / daemon / graphdriver / overlayutils / overlayutils.go
1 // +build linux
2
3 package overlayutils
4
5 import (
6         "errors"
7         "fmt"
8 )
9
10 // ErrDTypeNotSupported denotes that the backing filesystem doesn't support d_type.
11 func ErrDTypeNotSupported(driver, backingFs string) error {
12         msg := fmt.Sprintf("%s: the backing %s filesystem is formatted without d_type support, which leads to incorrect behavior.", driver, backingFs)
13         if backingFs == "xfs" {
14                 msg += " Reformat the filesystem with ftype=1 to enable d_type support."
15         }
16         msg += " Running without d_type support will no longer be supported in Docker 17.12."
17         return errors.New(msg)
18 }