overlayutils.go 572 B

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