From 9e1f1b50e0e213e9eca4db39e9e848fc2b642f40 Mon Sep 17 00:00:00 2001 From: Jeffery Utter Date: Thu, 19 Jan 2017 12:39:44 -0600 Subject: [PATCH] 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 --- cmd/fs-v1.go | 2 +- cmd/posix.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/fs-v1.go b/cmd/fs-v1.go index adcdb7542..224bb9bf2 100644 --- a/cmd/fs-v1.go +++ b/cmd/fs-v1.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 diff --git a/cmd/posix.go b/cmd/posix.go index cc4ff340f..0a1969fda 100644 --- a/cmd/posix.go +++ b/cmd/posix.go @@ -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