diff --git a/components/fs/vfs/vfs_fs.c b/components/fs/vfs/vfs_fs.c index 9606c024..1c43bb8d 100644 --- a/components/fs/vfs/vfs_fs.c +++ b/components/fs/vfs/vfs_fs.c @@ -750,7 +750,7 @@ int statfs(const char *path, struct statfs *buf) return MapToPosixRet(ret); } - if (mp->mFs->fsFops->stat != NULL) { + if (mp->mFs->fsMops->statfs != NULL) { ret = mp->mFs->fsMops->statfs(pathInMp, buf); } else { VFS_ERRNO_SET(ENOTSUP);