Thomas Gleixner | ec8f24b | 2019-05-19 13:07:45 +0100 | [diff] [blame] | 1 | # SPDX-License-Identifier: GPL-2.0-only |
Jan Kara | c290ea0 | 2015-06-18 16:52:29 +0200 | [diff] [blame] | 2 | # Ext3 configs are here for backward compatibility with old configs which may |
| 3 | # have EXT3_FS set but not EXT4_FS set and thus would result in non-bootable |
| 4 | # kernels after the removal of ext3 driver. |
| 5 | config EXT3_FS |
| 6 | tristate "The Extended 3 (ext3) filesystem" |
Jan Kara | c290ea0 | 2015-06-18 16:52:29 +0200 | [diff] [blame] | 7 | select EXT4_FS |
Jan Kara | c290ea0 | 2015-06-18 16:52:29 +0200 | [diff] [blame] | 8 | help |
| 9 | This config option is here only for backward compatibility. ext3 |
| 10 | filesystem is now handled by the ext4 driver. |
| 11 | |
| 12 | config EXT3_FS_POSIX_ACL |
| 13 | bool "Ext3 POSIX Access Control Lists" |
| 14 | depends on EXT3_FS |
| 15 | select EXT4_FS_POSIX_ACL |
| 16 | select FS_POSIX_ACL |
| 17 | help |
| 18 | This config option is here only for backward compatibility. ext3 |
| 19 | filesystem is now handled by the ext4 driver. |
| 20 | |
| 21 | config EXT3_FS_SECURITY |
| 22 | bool "Ext3 Security Labels" |
| 23 | depends on EXT3_FS |
| 24 | select EXT4_FS_SECURITY |
| 25 | help |
| 26 | This config option is here only for backward compatibility. ext3 |
| 27 | filesystem is now handled by the ext4 driver. |
| 28 | |
Alexey Dobriyan | 6da0b38 | 2008-10-20 22:28:45 +0400 | [diff] [blame] | 29 | config EXT4_FS |
| 30 | tristate "The Extended 4 (ext4) filesystem" |
| 31 | select JBD2 |
| 32 | select CRC16 |
Darrick J. Wong | 0441984 | 2012-04-29 18:27:10 -0400 | [diff] [blame] | 33 | select CRYPTO |
| 34 | select CRYPTO_CRC32C |
Christoph Hellwig | 545052e | 2017-10-01 17:58:54 -0400 | [diff] [blame] | 35 | select FS_IOMAP |
Herbert Xu | ede7a09 | 2019-12-27 10:47:00 +0800 | [diff] [blame] | 36 | select FS_ENCRYPTION_ALGS if FS_ENCRYPTION |
Alexey Dobriyan | 6da0b38 | 2008-10-20 22:28:45 +0400 | [diff] [blame] | 37 | help |
| 38 | This is the next generation of the ext3 filesystem. |
| 39 | |
| 40 | Unlike the change from ext2 filesystem to ext3 filesystem, |
| 41 | the on-disk format of ext4 is not forwards compatible with |
| 42 | ext3; it is based on extent maps and it supports 48-bit |
| 43 | physical block numbers. The ext4 filesystem also supports delayed |
| 44 | allocation, persistent preallocation, high resolution time stamps, |
| 45 | and a number of other features to improve performance and speed |
| 46 | up fsck time. For more information, please see the web pages at |
| 47 | http://ext4.wiki.kernel.org. |
| 48 | |
Jan Kara | c8962f4 | 2015-07-16 11:20:02 +0200 | [diff] [blame] | 49 | The ext4 filesystem supports mounting an ext3 filesystem; while there |
| 50 | are some performance gains from the delayed allocation and inode |
| 51 | table readahead, the best performance gains require enabling ext4 |
| 52 | features in the filesystem using tune2fs, or formatting a new |
| 53 | filesystem as an ext4 filesystem initially. Without explicit enabling |
| 54 | of ext4 features, the on disk filesystem format stays fully backward |
| 55 | compatible. |
Alexey Dobriyan | 6da0b38 | 2008-10-20 22:28:45 +0400 | [diff] [blame] | 56 | |
| 57 | To compile this file system support as a module, choose M here. The |
| 58 | module will be called ext4. |
| 59 | |
| 60 | If unsure, say N. |
| 61 | |
Jan Kara | c290ea0 | 2015-06-18 16:52:29 +0200 | [diff] [blame] | 62 | config EXT4_USE_FOR_EXT2 |
Jean Delvare | d4eb6de | 2015-09-24 12:38:22 +0200 | [diff] [blame] | 63 | bool "Use ext4 for ext2 file systems" |
David Howells | 84c6647 | 2009-12-21 10:54:09 -0500 | [diff] [blame] | 64 | depends on EXT4_FS |
Jan Kara | c290ea0 | 2015-06-18 16:52:29 +0200 | [diff] [blame] | 65 | depends on EXT2_FS=n |
Theodore Ts'o | 24b5842 | 2009-12-07 14:08:51 -0500 | [diff] [blame] | 66 | default y |
| 67 | help |
Jan Kara | c290ea0 | 2015-06-18 16:52:29 +0200 | [diff] [blame] | 68 | Allow the ext4 file system driver code to be used for ext2 |
| 69 | file system mounts. This allows users to reduce their |
Theodore Ts'o | 24b5842 | 2009-12-07 14:08:51 -0500 | [diff] [blame] | 70 | compiled kernel size by using one file system driver for |
| 71 | ext2, ext3, and ext4 file systems. |
| 72 | |
Alexey Dobriyan | 6da0b38 | 2008-10-20 22:28:45 +0400 | [diff] [blame] | 73 | config EXT4_FS_POSIX_ACL |
| 74 | bool "Ext4 POSIX Access Control Lists" |
Valerie Aurora | 96465ef | 2013-01-06 23:38:44 -0500 | [diff] [blame] | 75 | depends on EXT4_FS |
Alexey Dobriyan | 6da0b38 | 2008-10-20 22:28:45 +0400 | [diff] [blame] | 76 | select FS_POSIX_ACL |
| 77 | help |
| 78 | POSIX Access Control Lists (ACLs) support permissions for users and |
| 79 | groups beyond the owner/group/world scheme. |
| 80 | |
Alexey Dobriyan | 6da0b38 | 2008-10-20 22:28:45 +0400 | [diff] [blame] | 81 | If you don't know what Access Control Lists are, say N |
| 82 | |
| 83 | config EXT4_FS_SECURITY |
| 84 | bool "Ext4 Security Labels" |
Valerie Aurora | 96465ef | 2013-01-06 23:38:44 -0500 | [diff] [blame] | 85 | depends on EXT4_FS |
Alexey Dobriyan | 6da0b38 | 2008-10-20 22:28:45 +0400 | [diff] [blame] | 86 | help |
| 87 | Security labels support alternative access control models |
| 88 | implemented by security modules like SELinux. This option |
| 89 | enables an extended attribute handler for file security |
| 90 | labels in the ext4 filesystem. |
| 91 | |
| 92 | If you are not using a security module that requires using |
| 93 | extended attributes for file security labels, say N. |
Theodore Ts'o | 6ba495e | 2009-09-18 13:38:55 -0400 | [diff] [blame] | 94 | |
| 95 | config EXT4_DEBUG |
Geert Uytterhoeven | 231fe82 | 2019-02-21 11:37:28 -0500 | [diff] [blame] | 96 | bool "Ext4 debugging support" |
Theodore Ts'o | 6ba495e | 2009-09-18 13:38:55 -0400 | [diff] [blame] | 97 | depends on EXT4_FS |
| 98 | help |
| 99 | Enables run-time debugging support for the ext4 filesystem. |
| 100 | |
| 101 | If you select Y here, then you will be able to turn on debugging |
Ritesh Harjani | 70aa155 | 2020-05-10 11:54:55 +0530 | [diff] [blame] | 102 | using dynamic debug control for mb_debug() / ext_debug() msgs. |
Iurii Zaikin | 1cbeab1 | 2019-10-17 15:12:33 -0700 | [diff] [blame] | 103 | |
| 104 | config EXT4_KUNIT_TESTS |
Anders Roxell | d194e12 | 2020-05-11 15:14:38 +0200 | [diff] [blame] | 105 | tristate "KUnit tests for ext4" if !KUNIT_ALL_TESTS |
Geert Uytterhoeven | 302fdad | 2021-01-22 12:02:34 +0100 | [diff] [blame] | 106 | depends on EXT4_FS && KUNIT |
Anders Roxell | d194e12 | 2020-05-11 15:14:38 +0200 | [diff] [blame] | 107 | default KUNIT_ALL_TESTS |
Iurii Zaikin | 1cbeab1 | 2019-10-17 15:12:33 -0700 | [diff] [blame] | 108 | help |
| 109 | This builds the ext4 KUnit tests. |
| 110 | |
| 111 | KUnit tests run during boot and output the results to the debug log |
Alexander A. Klimov | e65bf6e | 2020-07-06 21:03:39 +0200 | [diff] [blame] | 112 | in TAP format (https://testanything.org/). Only useful for kernel devs |
Iurii Zaikin | 1cbeab1 | 2019-10-17 15:12:33 -0700 | [diff] [blame] | 113 | running KUnit test harness and are not for inclusion into a production |
| 114 | build. |
| 115 | |
| 116 | For more information on KUnit and unit tests in general please refer |
| 117 | to the KUnit documentation in Documentation/dev-tools/kunit/. |
| 118 | |
| 119 | If unsure, say N. |