@@ -128,7 +128,7 @@ func checkMountPointExist(volumePath string) (bool, error) {
128
128
129
129
func (hp * hostPath ) checkPVCapacityValid (volID string ) (bool , error ) {
130
130
volumePath := hp .getVolumePath (volID )
131
- _ , fscapacity , _ , _ , _ , _ , err := fs .FsInfo (volumePath )
131
+ _ , fscapacity , _ , _ , _ , _ , err := fs .Info (volumePath )
132
132
if err != nil {
133
133
return false , fmt .Errorf ("failed to get capacity info: %+v" , err )
134
134
}
@@ -143,12 +143,12 @@ func (hp *hostPath) checkPVCapacityValid(volID string) (bool, error) {
143
143
}
144
144
145
145
func getPVStats (volumePath string ) (available int64 , capacity int64 , used int64 , inodes int64 , inodesFree int64 , inodesUsed int64 , err error ) {
146
- return fs .FsInfo (volumePath )
146
+ return fs .Info (volumePath )
147
147
}
148
148
149
149
func (hp * hostPath ) checkPVUsage (volID string ) (bool , error ) {
150
150
volumePath := hp .getVolumePath (volID )
151
- fsavailable , _ , _ , _ , _ , _ , err := fs .FsInfo (volumePath )
151
+ fsavailable , _ , _ , _ , _ , _ , err := fs .Info (volumePath )
152
152
if err != nil {
153
153
return false , err
154
154
}
0 commit comments