From 5573986e8ea788bb67b26300f220295d80678dd3 Mon Sep 17 00:00:00 2001 From: Harshavardhana Date: Tue, 14 Nov 2023 09:31:16 -0800 Subject: [PATCH] fix: relax free inode check for single drive deployments (#18437) users might use MinIO on NFS, GPFS that provide dynamic inodes and may not even have a concept of free inodes. to allow users to use MinIO on top of GPFS relax the free inode check. --- cmd/object-api-utils.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/object-api-utils.go b/cmd/object-api-utils.go index b7135ed3f..043c3b76a 100644 --- a/cmd/object-api-utils.go +++ b/cmd/object-api-utils.go @@ -1198,7 +1198,7 @@ func hasSpaceFor(di []*DiskInfo, size int64) (bool, error) { if disk == nil || disk.Total == 0 { continue } - if disk.FreeInodes < diskMinInodes && disk.UsedInodes > 0 { + if !globalIsErasureSD && disk.FreeInodes < diskMinInodes && disk.UsedInodes > 0 { // We have an inode count, but not enough inodes. return false, nil }