github.com/lazyboychen7/engine@v17.12.1-ce-rc2+incompatible/daemon/graphdriver/overlayutils/overlayutils.go (about) 1 // +build linux 2 3 package overlayutils 4 5 import ( 6 "fmt" 7 8 "github.com/docker/docker/daemon/graphdriver" 9 ) 10 11 // ErrDTypeNotSupported denotes that the backing filesystem doesn't support d_type. 12 func ErrDTypeNotSupported(driver, backingFs string) error { 13 msg := fmt.Sprintf("%s: the backing %s filesystem is formatted without d_type support, which leads to incorrect behavior.", driver, backingFs) 14 if backingFs == "xfs" { 15 msg += " Reformat the filesystem with ftype=1 to enable d_type support." 16 } 17 msg += " Backing filesystems without d_type support are not supported." 18 19 return graphdriver.NotSupportedError(msg) 20 }