diff --git a/cmd/xl-storage-errors.go b/cmd/xl-storage-errors.go index 518f66d9c..86e7097fe 100644 --- a/cmd/xl-storage-errors.go +++ b/cmd/xl-storage-errors.go @@ -133,7 +133,7 @@ func osIsNotExist(err error) bool { } func osIsPermission(err error) bool { - return errors.Is(err, os.ErrPermission) + return errors.Is(err, os.ErrPermission) || errors.Is(err, syscall.EROFS) } func osIsExist(err error) bool {