From 605c90aedc68702bf3aeee12849651f07cdf24cf Mon Sep 17 00:00:00 2001 From: Xiang Xiao Date: Tue, 10 Aug 2021 16:18:10 +0800 Subject: [PATCH] examples/userfs: Implement the dummy callback of fchstat and chstat Signed-off-by: Xiang Xiao --- examples/userfs/userfs_main.c | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/examples/userfs/userfs_main.c b/examples/userfs/userfs_main.c index 9909fa143..1d80addd8 100644 --- a/examples/userfs/userfs_main.c +++ b/examples/userfs/userfs_main.c @@ -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 ****************************************************************************/