fs:notify add support for inotify

support API: open close read write unlink mkdir rename fchstat rmdir symlink

Signed-off-by: guohao15 <guohao15@xiaomi.com>
This commit is contained in:
guohao15
2023-08-18 20:14:38 +08:00
committed by Xiang Xiao
parent 6e1dfe2777
commit 86e00896d3
38 changed files with 1852 additions and 8 deletions
+4
View File
@@ -32,6 +32,7 @@
#include <nuttx/fs/fs.h>
#include "inode/inode.h"
#include "notify/notify.h"
/****************************************************************************
* Public Functions
@@ -184,6 +185,9 @@ int nx_umount2(FAR const char *target, unsigned int flags)
}
RELEASE_SEARCH(&desc);
#ifdef CONFIG_FS_NOTIFY
notify_unmount(target);
#endif
return OK;
/* A lot of goto's! But they make the error handling much simpler */