fs: add a mount flag for automounting file systems
File systems can be described in a devicetree node which pre-defines a mount structure. A feature in that structure is that it can be automatically mounted when the filesystem implementation registers itself. Add a flag that can be used to trigger this behavior. Signed-off-by: Peter Bigot <peter.bigot@nordicsemi.no>
This commit is contained in:
parent
ff0dd82da0
commit
ba24cd2f0f
1 changed files with 7 additions and 0 deletions
|
@ -77,6 +77,13 @@ enum {
|
|||
#define FS_MOUNT_FLAG_NO_FORMAT BIT(0)
|
||||
/** Flag makes mounted file system read-only */
|
||||
#define FS_MOUNT_FLAG_READ_ONLY BIT(1)
|
||||
/** Flag used in pre-defined mount structures that are to be mounted
|
||||
* on startup.
|
||||
*
|
||||
* This flag has no impact in user-defined mount structures.
|
||||
*/
|
||||
#define FS_MOUNT_FLAG_AUTOMOUNT BIT(2)
|
||||
|
||||
|
||||
/**
|
||||
* @brief File system mount info structure
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue