mirror of
https://github.com/minio/minio.git
synced 2024-12-24 06:05:55 -05:00
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:
parent
f3367a1b20
commit
5573986e8e
@ -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
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user