hint:=fmt.Sprintf("Run the following command to add the convenient permissions: `sudo chown -R %s %s && sudo chmod u+rxw %s`",username,endpoint.Path,endpoint.Path)
hint:=fmt.Sprintf("Run the following command to add write permissions: `sudo chown -R %s %s && sudo chmod u+rxw %s`",username,endpoint.Path,endpoint.Path)
logger.Fatal(config.ErrUnableToWriteInBackend(err).Hint(hint),"Unable to initialize posix backend")
caseerrFaultyDisk:
logger.LogIf(GlobalContext,fmt.Errorf("disk is faulty at %s, please replace the drive",endpoint))
caseerrDiskFull:
logger.LogIf(GlobalContext,fmt.Errorf("disk is already full at %s, incoming I/O will fail",endpoint))
default:
logger.LogIf(GlobalContext,fmt.Errorf("disk returned an unexpected error at %s, please investigate",endpoint))