2019-05-19 20:07:45 +08:00
|
|
|
# SPDX-License-Identifier: GPL-2.0-only
|
2015-06-18 22:52:29 +08:00
|
|
|
# Ext3 configs are here for backward compatibility with old configs which may
|
|
|
|
# have EXT3_FS set but not EXT4_FS set and thus would result in non-bootable
|
|
|
|
# kernels after the removal of ext3 driver.
|
|
|
|
config EXT3_FS
|
|
|
|
tristate "The Extended 3 (ext3) filesystem"
|
|
|
|
select EXT4_FS
|
|
|
|
help
|
|
|
|
This config option is here only for backward compatibility. ext3
|
|
|
|
filesystem is now handled by the ext4 driver.
|
|
|
|
|
|
|
|
config EXT3_FS_POSIX_ACL
|
|
|
|
bool "Ext3 POSIX Access Control Lists"
|
|
|
|
depends on EXT3_FS
|
|
|
|
select EXT4_FS_POSIX_ACL
|
|
|
|
select FS_POSIX_ACL
|
|
|
|
help
|
|
|
|
This config option is here only for backward compatibility. ext3
|
|
|
|
filesystem is now handled by the ext4 driver.
|
|
|
|
|
|
|
|
config EXT3_FS_SECURITY
|
|
|
|
bool "Ext3 Security Labels"
|
|
|
|
depends on EXT3_FS
|
|
|
|
select EXT4_FS_SECURITY
|
|
|
|
help
|
|
|
|
This config option is here only for backward compatibility. ext3
|
|
|
|
filesystem is now handled by the ext4 driver.
|
|
|
|
|
2008-10-21 02:28:45 +08:00
|
|
|
config EXT4_FS
|
|
|
|
tristate "The Extended 4 (ext4) filesystem"
|
2023-08-02 01:22:01 +08:00
|
|
|
select BUFFER_HEAD
|
2008-10-21 02:28:45 +08:00
|
|
|
select JBD2
|
|
|
|
select CRC16
|
2012-04-30 06:27:10 +08:00
|
|
|
select CRYPTO
|
|
|
|
select CRYPTO_CRC32C
|
2017-10-02 05:58:54 +08:00
|
|
|
select FS_IOMAP
|
2019-12-27 10:47:00 +08:00
|
|
|
select FS_ENCRYPTION_ALGS if FS_ENCRYPTION
|
2008-10-21 02:28:45 +08:00
|
|
|
help
|
|
|
|
This is the next generation of the ext3 filesystem.
|
|
|
|
|
|
|
|
Unlike the change from ext2 filesystem to ext3 filesystem,
|
|
|
|
the on-disk format of ext4 is not forwards compatible with
|
|
|
|
ext3; it is based on extent maps and it supports 48-bit
|
|
|
|
physical block numbers. The ext4 filesystem also supports delayed
|
|
|
|
allocation, persistent preallocation, high resolution time stamps,
|
|
|
|
and a number of other features to improve performance and speed
|
|
|
|
up fsck time. For more information, please see the web pages at
|
|
|
|
http://ext4.wiki.kernel.org.
|
|
|
|
|
2015-07-16 17:20:02 +08:00
|
|
|
The ext4 filesystem supports mounting an ext3 filesystem; while there
|
|
|
|
are some performance gains from the delayed allocation and inode
|
|
|
|
table readahead, the best performance gains require enabling ext4
|
|
|
|
features in the filesystem using tune2fs, or formatting a new
|
|
|
|
filesystem as an ext4 filesystem initially. Without explicit enabling
|
|
|
|
of ext4 features, the on disk filesystem format stays fully backward
|
|
|
|
compatible.
|
2008-10-21 02:28:45 +08:00
|
|
|
|
|
|
|
To compile this file system support as a module, choose M here. The
|
|
|
|
module will be called ext4.
|
|
|
|
|
|
|
|
If unsure, say N.
|
|
|
|
|
2015-06-18 22:52:29 +08:00
|
|
|
config EXT4_USE_FOR_EXT2
|
2015-09-24 18:38:22 +08:00
|
|
|
bool "Use ext4 for ext2 file systems"
|
2009-12-21 23:54:09 +08:00
|
|
|
depends on EXT4_FS
|
2015-06-18 22:52:29 +08:00
|
|
|
depends on EXT2_FS=n
|
2009-12-08 03:08:51 +08:00
|
|
|
default y
|
|
|
|
help
|
2015-06-18 22:52:29 +08:00
|
|
|
Allow the ext4 file system driver code to be used for ext2
|
|
|
|
file system mounts. This allows users to reduce their
|
2009-12-08 03:08:51 +08:00
|
|
|
compiled kernel size by using one file system driver for
|
|
|
|
ext2, ext3, and ext4 file systems.
|
|
|
|
|
2008-10-21 02:28:45 +08:00
|
|
|
config EXT4_FS_POSIX_ACL
|
|
|
|
bool "Ext4 POSIX Access Control Lists"
|
2013-01-07 12:38:44 +08:00
|
|
|
depends on EXT4_FS
|
2008-10-21 02:28:45 +08:00
|
|
|
select FS_POSIX_ACL
|
|
|
|
help
|
|
|
|
POSIX Access Control Lists (ACLs) support permissions for users and
|
|
|
|
groups beyond the owner/group/world scheme.
|
|
|
|
|
|
|
|
If you don't know what Access Control Lists are, say N
|
|
|
|
|
|
|
|
config EXT4_FS_SECURITY
|
|
|
|
bool "Ext4 Security Labels"
|
2013-01-07 12:38:44 +08:00
|
|
|
depends on EXT4_FS
|
2008-10-21 02:28:45 +08:00
|
|
|
help
|
|
|
|
Security labels support alternative access control models
|
|
|
|
implemented by security modules like SELinux. This option
|
|
|
|
enables an extended attribute handler for file security
|
|
|
|
labels in the ext4 filesystem.
|
|
|
|
|
|
|
|
If you are not using a security module that requires using
|
|
|
|
extended attributes for file security labels, say N.
|
2009-09-19 01:38:55 +08:00
|
|
|
|
|
|
|
config EXT4_DEBUG
|
2019-02-22 00:37:28 +08:00
|
|
|
bool "Ext4 debugging support"
|
2009-09-19 01:38:55 +08:00
|
|
|
depends on EXT4_FS
|
|
|
|
help
|
|
|
|
Enables run-time debugging support for the ext4 filesystem.
|
|
|
|
|
|
|
|
If you select Y here, then you will be able to turn on debugging
|
2020-05-10 14:24:55 +08:00
|
|
|
using dynamic debug control for mb_debug() / ext_debug() msgs.
|
2019-10-18 06:12:33 +08:00
|
|
|
|
|
|
|
config EXT4_KUNIT_TESTS
|
2020-05-11 21:14:38 +08:00
|
|
|
tristate "KUnit tests for ext4" if !KUNIT_ALL_TESTS
|
2021-01-22 19:02:34 +08:00
|
|
|
depends on EXT4_FS && KUNIT
|
2020-05-11 21:14:38 +08:00
|
|
|
default KUNIT_ALL_TESTS
|
2019-10-18 06:12:33 +08:00
|
|
|
help
|
|
|
|
This builds the ext4 KUnit tests.
|
|
|
|
|
|
|
|
KUnit tests run during boot and output the results to the debug log
|
2020-07-07 03:03:39 +08:00
|
|
|
in TAP format (https://testanything.org/). Only useful for kernel devs
|
2019-10-18 06:12:33 +08:00
|
|
|
running KUnit test harness and are not for inclusion into a production
|
|
|
|
build.
|
|
|
|
|
|
|
|
For more information on KUnit and unit tests in general please refer
|
|
|
|
to the KUnit documentation in Documentation/dev-tools/kunit/.
|
|
|
|
|
|
|
|
If unsure, say N.
|