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.
This commit is contained in:
Harshavardhana 2023-11-14 09:31:16 -08:00 committed by GitHub
parent f3367a1b20
commit 5573986e8e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1198,7 +1198,7 @@ func hasSpaceFor(di []*DiskInfo, size int64) (bool, error) {
if disk == nil || disk.Total == 0 { if disk == nil || disk.Total == 0 {
continue 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. // We have an inode count, but not enough inodes.
return false, nil return false, nil
} }