Skip to content

Commit 0685c79

Browse files
authored
Merge pull request #3358 from fusida/fix-nfs3
2 parents fdd3d91 + 764f2b1 commit 0685c79

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

fs/fs.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -413,17 +413,17 @@ func (i *RealFsInfo) GetFsInfoForPath(mountSet map[string]struct{}) ([]Fs, error
413413
// if /dev/zfs is not present default to VFS
414414
fallthrough
415415
case NFS.String():
416-
if !utils.FileExists(partition.mountpoint) {
417-
klog.V(4).Infof("the file system type is %s, partition mountpoint does not exist: %v", partition.fsType, partition.mountpoint)
418-
break
419-
}
420416
devId := fmt.Sprintf("%d:%d", partition.major, partition.minor)
421417
if v, ok := nfsInfo[devId]; ok {
422418
fs = v
423419
break
424420
}
425421
var inodes, inodesFree uint64
426422
fs.Capacity, fs.Free, fs.Available, inodes, inodesFree, err = getVfsStats(partition.mountpoint)
423+
if err != nil {
424+
klog.V(4).Infof("the file system type is %s, partition mountpoint does not exist: %v, error: %v", partition.fsType, partition.mountpoint, err)
425+
break
426+
}
427427
fs.Inodes = &inodes
428428
fs.InodesFree = &inodesFree
429429
fs.Type = VFS

0 commit comments

Comments
 (0)