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:
Peter Bigot 2020-11-09 11:56:47 -06:00 committed by Carles Cufí
commit ba24cd2f0f

View file

@ -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