xref: /openbmc/linux/fs/btrfs/Kconfig (revision 5c1aab1d)
1335debeeSAlexey Dobriyanconfig BTRFS_FS
2aa825914SDavid Sterba	tristate "Btrfs filesystem support"
314a958e6SFilipe David Borba Manana	select CRYPTO
414a958e6SFilipe David Borba Manana	select CRYPTO_CRC32C
5335debeeSAlexey Dobriyan	select ZLIB_INFLATE
6335debeeSAlexey Dobriyan	select ZLIB_DEFLATE
7a6fa6faeSLi Zefan	select LZO_COMPRESS
8a6fa6faeSLi Zefan	select LZO_DECOMPRESS
95c1aab1dSNick Terrell	select ZSTD_COMPRESS
105c1aab1dSNick Terrell	select ZSTD_DECOMPRESS
1153b381b3SDavid Woodhouse	select RAID6_PQ
1210e78e3aSTomasz Torcz	select XOR_BLOCKS
1383fe27eaSPranith Kumar	select SRCU
1453b381b3SDavid Woodhouse
15335debeeSAlexey Dobriyan	help
164204617dSDavid Sterba	  Btrfs is a general purpose copy-on-write filesystem with extents,
174204617dSDavid Sterba	  writable snapshotting, support for multiple devices and many more
184204617dSDavid Sterba	  features focused on fault tolerance, repair and easy administration.
19335debeeSAlexey Dobriyan
204204617dSDavid Sterba	  The filesystem disk format is no longer unstable, and it's not
214204617dSDavid Sterba	  expected to change unless there are strong reasons to do so. If there
224204617dSDavid Sterba	  is a format change, file systems with a unchanged format will
234204617dSDavid Sterba	  continue to be mountable and usable by newer kernels.
244204617dSDavid Sterba
254204617dSDavid Sterba	  For more information, please see the web pages at
264204617dSDavid Sterba	  http://btrfs.wiki.kernel.org.
27335debeeSAlexey Dobriyan
28335debeeSAlexey Dobriyan	  To compile this file system support as a module, choose M here. The
29335debeeSAlexey Dobriyan	  module will be called btrfs.
30335debeeSAlexey Dobriyan
31335debeeSAlexey Dobriyan	  If unsure, say N.
32bef62ef3SChristian Hesse
33bef62ef3SChristian Hesseconfig BTRFS_FS_POSIX_ACL
34bef62ef3SChristian Hesse	bool "Btrfs POSIX Access Control Lists"
35bef62ef3SChristian Hesse	depends on BTRFS_FS
36bef62ef3SChristian Hesse	select FS_POSIX_ACL
37bef62ef3SChristian Hesse	help
38bef62ef3SChristian Hesse	  POSIX Access Control Lists (ACLs) support permissions for users and
39bef62ef3SChristian Hesse	  groups beyond the owner/group/world scheme.
40bef62ef3SChristian Hesse
41bef62ef3SChristian Hesse	  To learn more about Access Control Lists, visit the POSIX ACLs for
42bef62ef3SChristian Hesse	  Linux website <http://acl.bestbits.at/>.
43bef62ef3SChristian Hesse
44bef62ef3SChristian Hesse	  If you don't know what Access Control Lists are, say N
45c975dd46SStefan Behrens
46c975dd46SStefan Behrensconfig BTRFS_FS_CHECK_INTEGRITY
47c975dd46SStefan Behrens	bool "Btrfs with integrity check tool compiled in (DANGEROUS)"
48c975dd46SStefan Behrens	depends on BTRFS_FS
49c975dd46SStefan Behrens	help
50c975dd46SStefan Behrens	  Adds code that examines all block write requests (including
51c975dd46SStefan Behrens	  writes of the super block). The goal is to verify that the
52c975dd46SStefan Behrens	  state of the filesystem on disk is always consistent, i.e.,
53c975dd46SStefan Behrens	  after a power-loss or kernel panic event the filesystem is
54c975dd46SStefan Behrens	  in a consistent state.
55c975dd46SStefan Behrens
56c975dd46SStefan Behrens	  If the integrity check tool is included and activated in
57c975dd46SStefan Behrens	  the mount options, plenty of kernel memory is used, and
58c975dd46SStefan Behrens	  plenty of additional CPU cycles are spent. Enabling this
59c975dd46SStefan Behrens	  functionality is not intended for normal use.
60c975dd46SStefan Behrens
61c975dd46SStefan Behrens	  In most cases, unless you are a btrfs developer who needs
62c975dd46SStefan Behrens	  to verify the integrity of (super)-block write requests
63c975dd46SStefan Behrens	  during the run of a regression test, say N
6474255aa0SJosef Bacik
6574255aa0SJosef Bacikconfig BTRFS_FS_RUN_SANITY_TESTS
6674255aa0SJosef Bacik	bool "Btrfs will run sanity tests upon loading"
6774255aa0SJosef Bacik	depends on BTRFS_FS
6874255aa0SJosef Bacik	help
6974255aa0SJosef Bacik	  This will run some basic sanity tests on the free space cache
7074255aa0SJosef Bacik	  code to make sure it is acting as it should.  These are mostly
71a26a8746SMichael Witten	  regression tests and are only really interesting to btrfs
72a26a8746SMichael Witten	  developers.
7374255aa0SJosef Bacik
7474255aa0SJosef Bacik	  If unsure, say N.
7574255aa0SJosef Bacik
766d49ba1bSEric Sandeenconfig BTRFS_DEBUG
776d49ba1bSEric Sandeen	bool "Btrfs debugging support"
786d49ba1bSEric Sandeen	depends on BTRFS_FS
796d49ba1bSEric Sandeen	help
806d49ba1bSEric Sandeen	  Enable run-time debugging support for the btrfs filesystem. This may
816d49ba1bSEric Sandeen	  enable additional and expensive checks with negative impact on
826d49ba1bSEric Sandeen	  performance, or export extra information via sysfs.
836d49ba1bSEric Sandeen
846d49ba1bSEric Sandeen	  If unsure, say N.
852e17c7c6SJosef Bacik
862e17c7c6SJosef Bacikconfig BTRFS_ASSERT
872e17c7c6SJosef Bacik	bool "Btrfs assert support"
882e17c7c6SJosef Bacik	depends on BTRFS_FS
892e17c7c6SJosef Bacik	help
902e17c7c6SJosef Bacik	  Enable run-time assertion checking.  This will result in panics if
912e17c7c6SJosef Bacik	  any of the assertions trip.  This is meant for btrfs developers only.
922e17c7c6SJosef Bacik
932e17c7c6SJosef Bacik	  If unsure, say N.
94