!1006 Fix : statfs函数内部判断错误

Merge pull request !1006 from yinjiaming/fix
This commit is contained in:
openharmony_ci
2023-01-11 07:37:51 +00:00
committed by Gitee

View File

@@ -742,7 +742,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);