examples/userfs: Implement the dummy callback of fchstat and chstat
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
parent
66650f223b
commit
605c90aedc
@ -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,
|
static int ufstest_stat(FAR void *volinfo, FAR const char *relpath,
|
||||||
FAR struct stat *buf);
|
FAR struct stat *buf);
|
||||||
static int ufstest_destroy(FAR void *volinfo);
|
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
|
* Private Data
|
||||||
@ -175,7 +179,9 @@ static const struct userfs_operations_s g_ufstest_ops =
|
|||||||
ufstest_rmdir,
|
ufstest_rmdir,
|
||||||
ufstest_rename,
|
ufstest_rename,
|
||||||
ufstest_stat,
|
ufstest_stat,
|
||||||
ufstest_destroy
|
ufstest_destroy,
|
||||||
|
ufstest_fchstat,
|
||||||
|
ufstest_chstat
|
||||||
};
|
};
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
@ -556,6 +562,18 @@ static int ufstest_destroy(FAR void *volinfo)
|
|||||||
return OK;
|
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
|
* ufstest_daemon
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
Loading…
Reference in New Issue
Block a user