xref: /linux/fs/btrfs/Kconfig (revision a3d14d1602ca11429d242d230c31af8f822f614f)
1852eb3aeSDavid Sterba# SPDX-License-Identifier: GPL-2.0
2852eb3aeSDavid Sterba
3335debeeSAlexey Dobriyanconfig BTRFS_FS
4aa825914SDavid Sterba	tristate "Btrfs filesystem support"
52c275afeSChristoph Hellwig	select BLK_CGROUP_PUNT_BIO
6*b261d222SEric Biggers	select CRC32
7d5178578SJohannes Thumshirn	select CRYPTO
8d5178578SJohannes Thumshirn	select CRYPTO_CRC32C
93951e7f0SJohannes Thumshirn	select CRYPTO_XXHASH
103831bf00SJohannes Thumshirn	select CRYPTO_SHA256
1178f926f7SDavid Sterba	select CRYPTO_BLAKE2B
12335debeeSAlexey Dobriyan	select ZLIB_INFLATE
13335debeeSAlexey Dobriyan	select ZLIB_DEFLATE
14a6fa6faeSLi Zefan	select LZO_COMPRESS
15a6fa6faeSLi Zefan	select LZO_DECOMPRESS
165c1aab1dSNick Terrell	select ZSTD_COMPRESS
175c1aab1dSNick Terrell	select ZSTD_DECOMPRESS
18f85781fbSGoldwyn Rodrigues	select FS_IOMAP
1953b381b3SDavid Woodhouse	select RAID6_PQ
2010e78e3aSTomasz Torcz	select XOR_BLOCKS
21e9009095SNathan Chancellor	depends on PAGE_SIZE_LESS_THAN_256KB
2253b381b3SDavid Woodhouse
23335debeeSAlexey Dobriyan	help
244204617dSDavid Sterba	  Btrfs is a general purpose copy-on-write filesystem with extents,
254204617dSDavid Sterba	  writable snapshotting, support for multiple devices and many more
264204617dSDavid Sterba	  features focused on fault tolerance, repair and easy administration.
27335debeeSAlexey Dobriyan
284204617dSDavid Sterba	  The filesystem disk format is no longer unstable, and it's not
294204617dSDavid Sterba	  expected to change unless there are strong reasons to do so. If there
304204617dSDavid Sterba	  is a format change, file systems with a unchanged format will
314204617dSDavid Sterba	  continue to be mountable and usable by newer kernels.
324204617dSDavid Sterba
334204617dSDavid Sterba	  For more information, please see the web pages at
345facccc9SBhaskar Chowdhury	  https://btrfs.readthedocs.io
35335debeeSAlexey Dobriyan
36335debeeSAlexey Dobriyan	  To compile this file system support as a module, choose M here. The
37335debeeSAlexey Dobriyan	  module will be called btrfs.
38335debeeSAlexey Dobriyan
39335debeeSAlexey Dobriyan	  If unsure, say N.
40bef62ef3SChristian Hesse
41bef62ef3SChristian Hesseconfig BTRFS_FS_POSIX_ACL
42bef62ef3SChristian Hesse	bool "Btrfs POSIX Access Control Lists"
43bef62ef3SChristian Hesse	depends on BTRFS_FS
44bef62ef3SChristian Hesse	select FS_POSIX_ACL
45bef62ef3SChristian Hesse	help
46bef62ef3SChristian Hesse	  POSIX Access Control Lists (ACLs) support permissions for users and
47bef62ef3SChristian Hesse	  groups beyond the owner/group/world scheme.
48bef62ef3SChristian Hesse
49bef62ef3SChristian Hesse	  If you don't know what Access Control Lists are, say N
50c975dd46SStefan Behrens
5174255aa0SJosef Bacikconfig BTRFS_FS_RUN_SANITY_TESTS
5274255aa0SJosef Bacik	bool "Btrfs will run sanity tests upon loading"
5374255aa0SJosef Bacik	depends on BTRFS_FS
5474255aa0SJosef Bacik	help
5574255aa0SJosef Bacik	  This will run sanity tests for core functionality like free space,
5674255aa0SJosef Bacik	  extent maps, extent io, extent buffers, inodes, qgroups and others,
57a26a8746SMichael Witten	  at module load time.  These are mostly regression tests and are only
58a26a8746SMichael Witten	  interesting to developers.
5974255aa0SJosef Bacik
6074255aa0SJosef Bacik	  If unsure, say N.
6174255aa0SJosef Bacik
626d49ba1bSEric Sandeenconfig BTRFS_DEBUG
636d49ba1bSEric Sandeen	bool "Btrfs debugging support"
646d49ba1bSEric Sandeen	depends on BTRFS_FS
656d49ba1bSEric Sandeen	help
666d49ba1bSEric Sandeen	  Enable run-time debugging support for the btrfs filesystem.
676d49ba1bSEric Sandeen
686d49ba1bSEric Sandeen	  Additional potentially expensive checks, debugging functionality or
696d49ba1bSEric Sandeen	  sysfs exported information is enabled, like leak checks of internal
706d49ba1bSEric Sandeen	  objects, optional forced space fragmentation and /sys/fs/btrfs/debug .
712e17c7c6SJosef Bacik	  This has negative impact on performance.
722e17c7c6SJosef Bacik
732e17c7c6SJosef Bacik	  If unsure, say N.
742e17c7c6SJosef Bacik
752e17c7c6SJosef Bacikconfig BTRFS_ASSERT
762e17c7c6SJosef Bacik	bool "Btrfs assert support"
772e17c7c6SJosef Bacik	depends on BTRFS_FS
782e17c7c6SJosef Bacik	help
792e17c7c6SJosef Bacik	  Enable run-time assertion checking. Additional safety checks are
80fd708b81SJosef Bacik	  done, simple enough not to affect performance but verify invariants
8167cd3f22SQu Wenruo	  and assumptions of code to run properly. This may result in panics,
8267cd3f22SQu Wenruo	  and is meant for developers but can be enabled in general.
8367cd3f22SQu Wenruo
8467cd3f22SQu Wenruo	  If unsure, say N.
8567cd3f22SQu Wenruo
8667cd3f22SQu Wenruoconfig BTRFS_EXPERIMENTAL
8767cd3f22SQu Wenruo	bool "Btrfs experimental features"
8867cd3f22SQu Wenruo	depends on BTRFS_FS
8967cd3f22SQu Wenruo	default n
9067cd3f22SQu Wenruo	help
9167cd3f22SQu Wenruo	  Enable experimental features.  These features may not be stable enough
9267cd3f22SQu Wenruo	  for end users.  This is meant for btrfs developers or users who wish
9367cd3f22SQu Wenruo	  to test the functionality and report problems.
9467cd3f22SQu Wenruo
9567cd3f22SQu Wenruo	  Current list:
9667cd3f22SQu Wenruo
9767cd3f22SQu Wenruo	  - COW fixup worker warning - last warning before removing the
9867cd3f22SQu Wenruo				       functionality catching out-of-band page
9967cd3f22SQu Wenruo				       dirtying, not necessary since 5.8
10067cd3f22SQu Wenruo
10167cd3f22SQu Wenruo	  - RAID mirror read policy - additional read policies for balancing
10267cd3f22SQu Wenruo				      reading from redundant block group
10367cd3f22SQu Wenruo				      profiles (currently: pid, round-robin,
10467cd3f22SQu Wenruo				      fixed devid)
10567cd3f22SQu Wenruo
10667cd3f22SQu Wenruo	  - send stream protocol v3 - fs-verity support
107fd708b81SJosef Bacik
108fd708b81SJosef Bacik	  - checksum offload mode - sysfs knob to affect when checksums are
109fd708b81SJosef Bacik	                            calculated (at IO time, or in a thread)
110fd708b81SJosef Bacik
111fd708b81SJosef Bacik	  - raid-stripe-tree - additional mapping of extents to devices to
112fd708b81SJosef Bacik			       support RAID1* profiles on zoned devices,
113fd708b81SJosef Bacik			       RAID56 not yet supported
114fd708b81SJosef Bacik
115fd708b81SJosef Bacik	  - extent tree v2 - complex rework of extent tracking
116fd708b81SJosef Bacik
117	  If unsure, say N.
118
119config BTRFS_FS_REF_VERIFY
120	bool "Btrfs with the ref verify tool compiled in"
121	depends on BTRFS_FS
122	default n
123	help
124	  Enable run-time extent reference verification instrumentation.  This
125	  is meant to be used by btrfs developers for tracking down extent
126	  reference problems or verifying they didn't break something.
127
128	  If unsure, say N.
129