From ba24cd2f0f6982ddb78d8feb680bb0b2f1d9adab Mon Sep 17 00:00:00 2001 From: Peter Bigot Date: Mon, 9 Nov 2020 11:56:47 -0600 Subject: [PATCH] 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 --- include/fs/fs.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/include/fs/fs.h b/include/fs/fs.h index 51baea559a2..b0dd027e6aa 100644 --- a/include/fs/fs.h +++ b/include/fs/fs.h @@ -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