github.com/cdoern/storage@v1.12.13/drivers/overlayutils/overlayutils.go (about) 1 // +build linux 2 3 package overlayutils 4 5 import ( 6 "fmt" 7 8 "github.com/containers/storage/drivers" 9 "github.com/pkg/errors" 10 ) 11 12 // ErrDTypeNotSupported denotes that the backing filesystem doesn't support d_type. 13 func ErrDTypeNotSupported(driver, backingFs string) error { 14 msg := fmt.Sprintf("%s: the backing %s filesystem is formatted without d_type support, which leads to incorrect behavior.", driver, backingFs) 15 if backingFs == "xfs" { 16 msg += " Reformat the filesystem with ftype=1 to enable d_type support." 17 } 18 msg += " Running without d_type is not supported." 19 return errors.Wrap(graphdriver.ErrNotSupported, msg) 20 }