xref: /openbmc/linux/fs/btrfs/Kconfig (revision 3951e7f0)
1# SPDX-License-Identifier: GPL-2.0
2
3config BTRFS_FS
4	tristate "Btrfs filesystem support"
5	select CRYPTO
6	select CRYPTO_CRC32C
7	select LIBCRC32C
8	select CRYPTO_XXHASH
9	select ZLIB_INFLATE
10	select ZLIB_DEFLATE
11	select LZO_COMPRESS
12	select LZO_DECOMPRESS
13	select ZSTD_COMPRESS
14	select ZSTD_DECOMPRESS
15	select RAID6_PQ
16	select XOR_BLOCKS
17	select SRCU
18
19	help
20	  Btrfs is a general purpose copy-on-write filesystem with extents,
21	  writable snapshotting, support for multiple devices and many more
22	  features focused on fault tolerance, repair and easy administration.
23
24	  The filesystem disk format is no longer unstable, and it's not
25	  expected to change unless there are strong reasons to do so. If there
26	  is a format change, file systems with a unchanged format will
27	  continue to be mountable and usable by newer kernels.
28
29	  For more information, please see the web pages at
30	  http://btrfs.wiki.kernel.org.
31
32	  To compile this file system support as a module, choose M here. The
33	  module will be called btrfs.
34
35	  If unsure, say N.
36
37config BTRFS_FS_POSIX_ACL
38	bool "Btrfs POSIX Access Control Lists"
39	depends on BTRFS_FS
40	select FS_POSIX_ACL
41	help
42	  POSIX Access Control Lists (ACLs) support permissions for users and
43	  groups beyond the owner/group/world scheme.
44
45	  If you don't know what Access Control Lists are, say N
46
47config BTRFS_FS_CHECK_INTEGRITY
48	bool "Btrfs with integrity check tool compiled in (DANGEROUS)"
49	depends on BTRFS_FS
50	help
51	  Adds code that examines all block write requests (including
52	  writes of the super block). The goal is to verify that the
53	  state of the filesystem on disk is always consistent, i.e.,
54	  after a power-loss or kernel panic event the filesystem is
55	  in a consistent state.
56
57	  If the integrity check tool is included and activated in
58	  the mount options, plenty of kernel memory is used, and
59	  plenty of additional CPU cycles are spent. Enabling this
60	  functionality is not intended for normal use.
61
62	  In most cases, unless you are a btrfs developer who needs
63	  to verify the integrity of (super)-block write requests
64	  during the run of a regression test, say N
65
66config BTRFS_FS_RUN_SANITY_TESTS
67	bool "Btrfs will run sanity tests upon loading"
68	depends on BTRFS_FS
69	help
70	  This will run some basic sanity tests on the free space cache
71	  code to make sure it is acting as it should.  These are mostly
72	  regression tests and are only really interesting to btrfs
73	  developers.
74
75	  If unsure, say N.
76
77config BTRFS_DEBUG
78	bool "Btrfs debugging support"
79	depends on BTRFS_FS
80	help
81	  Enable run-time debugging support for the btrfs filesystem. This may
82	  enable additional and expensive checks with negative impact on
83	  performance, or export extra information via sysfs.
84
85	  If unsure, say N.
86
87config BTRFS_ASSERT
88	bool "Btrfs assert support"
89	depends on BTRFS_FS
90	help
91	  Enable run-time assertion checking.  This will result in panics if
92	  any of the assertions trip.  This is meant for btrfs developers only.
93
94	  If unsure, say N.
95
96config BTRFS_FS_REF_VERIFY
97	bool "Btrfs with the ref verify tool compiled in"
98	depends on BTRFS_FS
99	default n
100	help
101	  Enable run-time extent reference verification instrumentation.  This
102	  is meant to be used by btrfs developers for tracking down extent
103	  reference problems or verifying they didn't break something.
104
105	  If unsure, say N.
106