Fix negative hash problem
[yaffs2.git] / Kconfig
1 #
2 # YAFFS file system configurations
3 #
4
5 config YAFFS_FS
6         tristate "YAFFS2 file system support"
7         default n
8         select YAFFS_YAFFS1
9         select YAFFS_YAFFS2
10         help
11           YAFFS2, or Yet Another Flash Filing System, is a filing system
12           optimised for NAND Flash chips.
13
14           To compile the YAFFS2 file system support as a module, choose M here:
15           the module will be called yaffs2.
16
17           If unsure, say N.
18
19           Further information on YAFFS2 is available at
20           <http://www.aleph1.co.uk/yaffs/>.
21
22 config YAFFS_YAFFS1
23         bool "512 byte / page devices"
24         depends on YAFFS_FS
25         default y
26         help
27           Enable YAFFS1 support -- yaffs for 512 byte / page devices
28
29           If unsure, say Y.
30
31 config YAFFS_DOES_ECC
32         bool "Lets Yaffs do its own ECC"
33         depends on YAFFS_FS && YAFFS_YAFFS1
34         default n
35         help
36           This enables Yaffs to use its own ECC functions instead of using
37           the ones from the generic MTD-NAND driver.
38
39           If unsure, say N.
40
41 config YAFFS_ECC_WRONG_ORDER
42         bool "Use the same ecc byte order as Steven Hill's nand_ecc.c"
43         depends on YAFFS_FS && YAFFS_DOES_ECC
44         default n
45         help
46           This makes yaffs_ecc.c use the same ecc byte order as
47           Steven Hill's nand_ecc.c. If not set, then you get the
48           same ecc byte order as SmartMedia.
49
50           If unsure, say N.
51
52 config YAFFS_YAFFS2
53         bool "2048 byte (or larger) / page devices"
54         depends on YAFFS_FS
55         default y
56         help
57           Enable YAFFS2 support -- yaffs for >= 2048 byte / page larger devices
58
59           If unsure, say Y.
60
61 config YAFFS_AUTO_YAFFS2
62         bool "Autoselect yaffs2 format"
63         depends on YAFFS_YAFFS2
64         default y
65         help
66           Without this, you need to explicitely use yaffs2 as the file
67           system type. With this, you can say "yaffs" and yaffs or yaffs2
68           will be used depending on the device page size.
69
70           If unsure, say Y.
71
72 config YAFFS_DISABLE_WIDE_TNODES
73         bool "Turn off wide tnodes"
74         depends on YAFFS_FS
75         default n
76         help
77           Wide tnodes are only used for large NAND arrays (>=32MB for
78           512-byte page devices and >=128MB for 2k page devices). They use 
79           slightly more RAM but are faster since they eliminate chunk group
80           searching.
81
82           Setting this to 'y' will force tnode width to 16 bits and make
83           large arrays slower.
84
85           If unsure, say N.
86
87 config YAFFS_DISABLE_CHUNK_ERASED_CHECK
88         bool "Turn off debug chunk erase check"
89         depends on YAFFS_FS
90         default y
91         help
92           Enabling this turns off the test that chunks are erased in flash
93           before writing to them.  This is safe, since the write verification
94           will fail.  Suggest enabling the test (ie. say N)
95           during development to help debug things.
96
97           If unsure, say Y.
98
99 config YAFFS_SHORT_NAMES_IN_RAM
100         bool "Cache short names in RAM"
101         depends on YAFFS_FS
102         default y
103         help
104           If this config is set, then short names are stored with the
105           yaffs_Object.  This costs an extra 16 bytes of RAM per object,
106           but makes look-ups faster.
107
108           If unsure, say Y.