mirror of
https://github.com/apache/nuttx.git
synced 2026-06-02 01:21:26 +08:00
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:
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user