7#ifndef ZEPHYR_INCLUDE_FS_FS_INTERFACE_H_
8#define ZEPHYR_INCLUDE_FS_FS_INTERFACE_H_
16#if defined(CONFIG_FILE_SYSTEM_MAX_FILE_NAME) && (CONFIG_FILE_SYSTEM_MAX_FILE_NAME - 0) > 0
19#if (CONFIG_FILE_SYSTEM_LITTLEFS || CONFIG_FAT_FILESYSTEM_ELM || \
20 CONFIG_FILE_SYSTEM_EXT2) && (CONFIG_FILE_SYSTEM_MAX_FILE_NAME > 255)
21#error "Max allowed CONFIG_FILE_SYSTEM_MAX_FILE_NAME is 255 characters, when any in-tree FS enabled"
25#if defined(CONFIG_FAT_FILESYSTEM_ELM) && !(CONFIG_FS_FATFS_LFN) && \
26 (CONFIG_FILE_SYSTEM_MAX_FILE_NAME > 12)
27#error "CONFIG_FILE_SYSTEM_MAX_FILE_NAME can not be > 12 if FAT is enabled without LFN"
30#define MAX_FILE_NAME CONFIG_FILE_SYSTEM_MAX_FILE_NAME
35#if defined(CONFIG_FAT_FILESYSTEM_ELM)
37#if defined(CONFIG_FS_FATFS_LFN)
38#define MAX_FILE_NAME CONFIG_FS_FATFS_MAX_LFN
40#define MAX_FILE_NAME 12
45#if !defined(MAX_FILE_NAME) && defined(CONFIG_FILE_SYSTEM_EXT2)
46#define MAX_FILE_NAME 255
49#if !defined(MAX_FILE_NAME) && defined(CONFIG_FILE_SYSTEM_LITTLEFS)
50#define MAX_FILE_NAME 255
53#if !defined(MAX_FILE_NAME)
55#define MAX_FILE_NAME 12
uint8_t fs_mode_t
Definition: fs_interface.h:62
__UINT8_TYPE__ uint8_t
Definition: stdint.h:88
Directory object representing an open directory.
Definition: fs_interface.h:90
const struct fs_mount_t * mp
Pointer to mount point structure.
Definition: fs_interface.h:94
void * dirp
Pointer to directory object structure.
Definition: fs_interface.h:92
File object representing an open file.
Definition: fs_interface.h:76
fs_mode_t flags
Open/create flags.
Definition: fs_interface.h:82
void * filep
Pointer to file object structure.
Definition: fs_interface.h:78
const struct fs_mount_t * mp
Pointer to mount point structure.
Definition: fs_interface.h:80
File system mount info structure.
Definition: fs.h:91