Don't Check Available Inodes on NFS (#3598)

In some cases (such as with VirutualBox, this value gets hardcoded
to 1000, which is less than the required minimum of 10000.

Fixes #3592
master
Jeffery Utter 8 years ago committed by Harshavardhana
parent 0715032598
commit 9e1f1b50e0
  1. 2
      cmd/fs-v1.go
  2. 2
      cmd/posix.go

@ -199,7 +199,7 @@ func (fs fsObjects) checkDiskFree() (err error) {
// are allocated based on available disk space. For example CephFS, StoreNext CVFS, AzureFile driver.
// Allow for the available disk to be separately validate and we will validate inodes only if
// total inodes are provided by the underlying filesystem.
if di.Files != 0 {
if di.Files != 0 && di.FSType != "NFS" {
availableFiles := int64(di.Ffree)
if availableFiles <= fs.minFreeInodes {
return errDiskFull

@ -177,7 +177,7 @@ func (s *posix) checkDiskFree() (err error) {
// are allocated based on available disk space. For example CephFS, StoreNext CVFS, AzureFile driver.
// Allow for the available disk to be separately validate and we will validate inodes only if
// total inodes are provided by the underlying filesystem.
if di.Files != 0 {
if di.Files != 0 && di.FSType != "NFS" {
availableFiles := int64(di.Ffree)
if availableFiles <= s.minFreeInodes {
return errDiskFull

Loading…
Cancel
Save