code: func xfsSupported() error {
  	// Make sure mkfs.xfs is available
  	if _, err := exec.LookPath("mkfs.xfs"); err != nil {
  		return err // error text is descriptive enough
  	}
  
  	// Check if kernel supports xfs filesystem or not.
  	exec.Command("modprobe", "xfs").Run()
  
  	f, err := os.Open("/proc/filesystems")
  	if err != nil {
  		return errors.Wrapf(err, "error checking for xfs support")
  	}
  	defer f.Close()
  
  	s := bufio.NewScanner(f)
  	for s.Scan() {
  		if strings.HasSuffix(s.Text(), "\txfs") {
  			return nil
  		}
  	}
  
  	if err := s.Err(); err != nil {
  		return errors.Wrapf(err, "error checking for xfs support")
  	}
  
  	return errors.New(`kernel does not support xfs, or "modprobe xfs" failed`)
  }
docs: // xfsSupported checks if xfs is supported, returns nil if it is, otherwise an error