1# Copyright (c) 2023 Antmicro
2# SPDX-License-Identifier: Apache-2.0
3
4# Ext2 file system
5
6config FILE_SYSTEM_EXT2
7	bool "Ext2 file system support"
8	depends on FILE_SYSTEM
9	help
10	  Enable Ext2 file system support.
11
12module = EXT2
13module-str = Ext2
14source "subsys/logging/Kconfig.template.log_config"
15
16if FILE_SYSTEM_EXT2
17
18menu "Ext2 file system Settings"
19	visible if FILE_SYSTEM_EXT2
20
21config MAX_FILES
22	int "Maximum number of opened inodes"
23	default 10
24
25config EXT2_MAX_BLOCK_SIZE
26	int "Maximum size of supported block"
27	range 1024 4096
28	default 4096
29	help
30	  This flag is used to determine size of internal structures that
31	  are used to store fetched blocks.
32
33config EXT2_MAX_BLOCK_COUNT
34	int "Maximum number of blocks that might be used"
35	default 10
36	help
37	  This flag is used to determine size of internal structures that
38	  are used to store fetched blocks.
39
40config EXT2_DISK_STARTING_SECTOR
41	int "Ext2 starting sector"
42	default 0
43	help
44	  The current Ext2 implementation does not support GUID Partition Table. The starting sector
45	  of the file system must be specified by this option.
46
47endmenu
48endif
49