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
This commit is contained in:
Jeffery Utter 2017-01-19 12:39:44 -06:00 committed by Harshavardhana
parent 0715032598
commit 9e1f1b50e0
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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