diff --git a/components/fs/vfs/vfs_fs.c b/components/fs/vfs/vfs_fs.c index a94c18b4..2b6f2b8e 100644 --- a/components/fs/vfs/vfs_fs.c +++ b/components/fs/vfs/vfs_fs.c @@ -749,7 +749,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);