615f867c14
Instead of overloading standard error codes (EINTR/EAGAIN), and defining short lists of error codes in multiple places that potentially end up overlapping & conflicting, we're now going to have one master list of error codes. Error codes are defined with an x-macro: thus we also have bch2_err_str() now. Also, error codes have a class field. Now, instead of checking for errors with ==, code should use bch2_err_matches(), which returns true if the error is equal to or a sub-error of the error class. This means we can define unique errors for every source location where an error is generated, which will help improve our error messages. Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
74 lines
1.8 KiB
Plaintext
74 lines
1.8 KiB
Plaintext
|
|
config BCACHEFS_FS
|
|
tristate "bcachefs filesystem support"
|
|
depends on BLOCK
|
|
select EXPORTFS
|
|
select CLOSURES
|
|
select LIBCRC32C
|
|
select CRC64
|
|
select FS_POSIX_ACL
|
|
select LZ4_COMPRESS
|
|
select LZ4_DECOMPRESS
|
|
select ZLIB_DEFLATE
|
|
select ZLIB_INFLATE
|
|
select ZSTD_COMPRESS
|
|
select ZSTD_DECOMPRESS
|
|
select CRYPTO_SHA256
|
|
select CRYPTO_CHACHA20
|
|
select CRYPTO_POLY1305
|
|
select KEYS
|
|
select RAID6_PQ
|
|
select XOR_BLOCKS
|
|
select XXHASH
|
|
select SRCU
|
|
select SYMBOLIC_ERRNAME
|
|
help
|
|
The bcachefs filesystem - a modern, copy on write filesystem, with
|
|
support for multiple devices, compression, checksumming, etc.
|
|
|
|
config BCACHEFS_QUOTA
|
|
bool "bcachefs quota support"
|
|
depends on BCACHEFS_FS
|
|
select QUOTACTL
|
|
|
|
config BCACHEFS_POSIX_ACL
|
|
bool "bcachefs POSIX ACL support"
|
|
depends on BCACHEFS_FS
|
|
select FS_POSIX_ACL
|
|
|
|
config BCACHEFS_DEBUG_TRANSACTIONS
|
|
bool "bcachefs runtime info"
|
|
depends on BCACHEFS_FS
|
|
default y
|
|
help
|
|
This makes the list of running btree transactions available in debugfs.
|
|
|
|
This is a highly useful debugging feature but does add a small amount of overhead.
|
|
|
|
config BCACHEFS_DEBUG
|
|
bool "bcachefs debugging"
|
|
depends on BCACHEFS_FS
|
|
help
|
|
Enables many extra debugging checks and assertions.
|
|
|
|
The resulting code will be significantly slower than normal; you
|
|
probably shouldn't select this option unless you're a developer.
|
|
|
|
config BCACHEFS_TESTS
|
|
bool "bcachefs unit and performance tests"
|
|
depends on BCACHEFS_FS
|
|
help
|
|
Include some unit and performance tests for the core btree code
|
|
|
|
config BCACHEFS_LOCK_TIME_STATS
|
|
bool "bcachefs lock time statistics"
|
|
depends on BCACHEFS_FS
|
|
help
|
|
Expose statistics for how long we held a lock in debugfs
|
|
|
|
config BCACHEFS_NO_LATENCY_ACCT
|
|
bool "disable latency accounting and time stats"
|
|
depends on BCACHEFS_FS
|
|
help
|
|
This disables device latency tracking and time stats, only for performance testing
|