blob: 430c69f39842f72f39b13a908c6e0dd4a32e4896 [file] [log] [blame]
Artem Bityutskiy0d7eff82008-07-14 19:08:38 +03001config UBIFS_FS
2 tristate "UBIFS file system support"
3 select CRC16
4 select CRC32
5 select CRYPTO if UBIFS_FS_ADVANCED_COMPR
6 select CRYPTO if UBIFS_FS_LZO
7 select CRYPTO if UBIFS_FS_ZLIB
8 select CRYPTO_LZO if UBIFS_FS_LZO
9 select CRYPTO_DEFLATE if UBIFS_FS_ZLIB
Don Mullisa069c262010-03-05 13:43:16 -080010 select LIST_SORT
Artem Bityutskiy0d7eff82008-07-14 19:08:38 +030011 depends on MTD_UBI
12 help
13 UBIFS is a file system for flash devices which works on top of UBI.
14
15config UBIFS_FS_XATTR
16 bool "Extended attributes support"
17 depends on UBIFS_FS
18 help
19 This option enables support of extended attributes.
20
21config UBIFS_FS_ADVANCED_COMPR
22 bool "Advanced compression options"
23 depends on UBIFS_FS
24 help
25 This option allows to explicitly choose which compressions, if any,
Matt LaPlante692105b2009-01-26 11:12:25 +010026 are enabled in UBIFS. Removing compressors means inability to read
Artem Bityutskiy0d7eff82008-07-14 19:08:38 +030027 existing file systems.
28
29 If unsure, say 'N'.
30
31config UBIFS_FS_LZO
32 bool "LZO compression support" if UBIFS_FS_ADVANCED_COMPR
33 depends on UBIFS_FS
34 default y
35 help
Matt LaPlante692105b2009-01-26 11:12:25 +010036 LZO compressor is generally faster than zlib but compresses worse.
Artem Bityutskiy0d7eff82008-07-14 19:08:38 +030037 Say 'Y' if unsure.
38
39config UBIFS_FS_ZLIB
40 bool "ZLIB compression support" if UBIFS_FS_ADVANCED_COMPR
41 depends on UBIFS_FS
42 default y
43 help
Frederik Schwarzer025dfda2008-10-16 19:02:37 +020044 Zlib compresses better than LZO but it is slower. Say 'Y' if unsure.
Artem Bityutskiy0d7eff82008-07-14 19:08:38 +030045
46# Debugging-related stuff
47config UBIFS_FS_DEBUG
48 bool "Enable debugging"
49 depends on UBIFS_FS
50 select DEBUG_FS
51 select KALLSYMS_ALL
52 help
53 This option enables UBIFS debugging.
54
55config UBIFS_FS_DEBUG_MSG_LVL
56 int "Default message level (0 = no extra messages, 3 = lots)"
57 depends on UBIFS_FS_DEBUG
58 default "0"
59 help
60 This controls the amount of debugging messages produced by UBIFS.
61 If reporting bugs, please try to have available a full dump of the
62 messages at level 1 while the misbehaviour was occurring. Level 2
63 may become necessary if level 1 messages were not enough to find the
64 bug. Generally Level 3 should be avoided.
65
66config UBIFS_FS_DEBUG_CHKS
67 bool "Enable extra checks"
68 depends on UBIFS_FS_DEBUG
69 help
70 If extra checks are enabled UBIFS will check the consistency of its
71 internal data structures during operation. However, UBIFS performance
72 is dramatically slower when this option is selected especially if the
73 file system is large.