examples/userfs: Implement the dummy callback of fchstat and chstat

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
Xiang Xiao 2021-08-10 16:18:10 +08:00 committed by Abdelatif Guettouche
parent 66650f223b
commit 605c90aedc

View File

@ -117,6 +117,10 @@ static int ufstest_rename(FAR void *volinfo, FAR const char *oldrelpath,
static int ufstest_stat(FAR void *volinfo, FAR const char *relpath,
FAR struct stat *buf);
static int ufstest_destroy(FAR void *volinfo);
static int ufstest_fchstat(FAR void *volinfo, FAR void *openinfo,
FAR const struct stat *buf, int flags);
static int ufstest_chstat(FAR void *volinfo, FAR const char *relpath,
FAR const struct stat *buf, int flags);
/****************************************************************************
* Private Data
@ -175,7 +179,9 @@ static const struct userfs_operations_s g_ufstest_ops =
ufstest_rmdir,
ufstest_rename,
ufstest_stat,
ufstest_destroy
ufstest_destroy,
ufstest_fchstat,
ufstest_chstat
};
/****************************************************************************
@ -556,6 +562,18 @@ static int ufstest_destroy(FAR void *volinfo)
return OK;
}
static int ufstest_fchstat(FAR void *volinfo, FAR void *openinfo,
FAR const struct stat *buf, int flags)
{
return OK;
}
static int ufstest_chstat(FAR void *volinfo, FAR const char *relpath,
FAR const struct stat *buf, int flags)
{
return OK;
}
/****************************************************************************
* ufstest_daemon
****************************************************************************/