From 167ddf9c9c7e0b47135cd075be07680a49d4e064 Mon Sep 17 00:00:00 2001 From: Klaus Post Date: Fri, 29 May 2020 07:05:19 -0700 Subject: [PATCH] Workaround for Windows Docker Engine 19.03.8 (#9735) Add workaround for issue preventing servers from starting on Windows Docker Engine 19.03.8 Fixes #9726 --- cmd/fs-v1-helpers.go | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/cmd/fs-v1-helpers.go b/cmd/fs-v1-helpers.go index 37756a16f..b312a5a92 100644 --- a/cmd/fs-v1-helpers.go +++ b/cmd/fs-v1-helpers.go @@ -363,11 +363,15 @@ func fsCreateFile(ctx context.Context, filePath string, reader io.Reader, buf [] // wrapper to handle various operating system specific errors. func fsFAllocate(fd int, offset int64, len int64) (err error) { e := Fallocate(fd, offset, len) - // Ignore errors when Fallocate is not supported in the current system - if e != nil && !isSysErrNoSys(e) && !isSysErrOpNotSupported(e) { + if e != nil { switch { case isSysErrNoSpace(e): err = errDiskFull + case isSysErrNoSys(e) || isSysErrOpNotSupported(e): + // Ignore errors when Fallocate is not supported in the current system + case isSysErrInvalidArg(e): + // Workaround for Windows Docker Engine 19.03.8. + // See https://github.com/minio/minio/issues/9726 case isSysErrIO(e): err = e default: