zephyr/subsys/fs/Kconfig
Andrzej Kaczmarek 81da3ca295 fs: nffs: Add NFFS filesystem support
This patch adds filesystem interface implementation for NFFS.
Default configuration for mem slabs sizes are the same as in Mynewt.

Origin: Original
Signed-off-by: Andrzej Kaczmarek <andrzej.kaczmarek@codecoup.pl>
2017-09-22 06:54:48 -04:00

85 lines
1.5 KiB
Text

#
# Copyright (c) 2016 Intel Corporation
#
# SPDX-License-Identifier: Apache-2.0
#
menu "File System"
config FILE_SYSTEM
bool "File system support"
select DISK_ACCESS
default n
help
Enables support for file system.
if FILE_SYSTEM
config FILE_SYSTEM_SHELL
bool "Enable file system shell"
depends on CONSOLE_SHELL
help
This shell provides basic browsing of the contents of the
file system.
choice
prompt "Supported file system"
default FILE_SYSTEM_FAT
config FILE_SYSTEM_FAT
bool "FAT file system support"
help
Enables FAT file system support.
config FILE_SYSTEM_NFFS
bool "NFFS file system support"
select FLASH_PAGE_LAYOUT
help
Enables NFFS file system support.
Note: NFFS requires 1-byte unaligned access to flash thus it
will not work on devices that support only aligned flash access.
endchoice
menu "NFFS Settings"
visible if FILE_SYSTEM_NFFS
config FS_NFFS_FLASH_DEV_NAME
string
prompt "Flash device name to be used"
config FS_NFFS_NUM_INODES
int "Maximum number of inodes"
range 1 32768
default 100
config FS_NFFS_NUM_BLOCKS
int "Maximum number of blocks"
range 1 32768
default 100
config FS_NFFS_NUM_FILES
int "Maximum number of opened files"
range 1 256
default 4
config FS_NFFS_NUM_DIRS
int "Maximum number of opened directories"
range 1 256
default 4
config FS_NFFS_NUM_CACHE_INODES
int "Number of cached files' inodes"
range 1 512
default 4
config FS_NFFS_NUM_CACHE_BLOCKS
int "Number of cached blocks"
range 1 512
default 64
endmenu
endif # FILE_SYSTEM
endmenu