Kconfig

File systems

CONFIG_DCACHE_WORD_ACCESS

On

CONFIG_VALIDATE_FS_PARSER Validate filesystem parameter description

On

Enable this to perform validation of the parameter description for a filesystem when it is registered.

CONFIG_FS_IOMAP

On

CONFIG_FS_STACK

On

CONFIG_BUFFER_HEAD

On

If BLOCK

Includefs/ext2/Kconfig Open file
Includefs/ext4/Kconfig Open file
Includefs/jbd2/Kconfig Open file
Includefs/jfs/Kconfig Open file
Includefs/xfs/Kconfig Open file
Includefs/gfs2/Kconfig Open file
Includefs/ocfs2/Kconfig Open file
Includefs/btrfs/Kconfig Open file
Includefs/nilfs2/Kconfig Open file
Includefs/f2fs/Kconfig Open file
Includefs/zonefs/Kconfig Open file

CONFIG_FS_DAX File system based Direct Access (DAX) support

On

Direct Access (DAX) can be used on memory-backed block devices. If the block device supports DAX and the filesystem supports DAX, then you can avoid using the pagecache to buffer I/Os. Turning on this option will compile in support for DAX.

For a DAX device to support file system access it needs to have struct pages. For the nfit based NVDIMMs this can be enabled using the ndctl utility:

      # ndctl create-namespace --force --reconfig=namespace0.0 \
              --mode=fsdax --map=mem

See the 'create-namespace' man page for details on the overhead of --map=mem: https://docs.pmem.io/ndctl-user-guide/ndctl-man-pages/ndctl-create-namespace

For ndctl to work CONFIG_DEV_DAX needs to be enabled as well. For most file systems DAX support needs to be manually enabled globally or per-inode using a mount option as well. See the file documentation in Documentation/filesystems/dax.rst for details.

If you do not have a block device that is capable of using this, or if unsure, say N. Saying Y will increase the size of the kernel by about 5kB.

If FS_DAX

CONFIG_FS_POSIX_ACL

On
Default
  • n

CONFIG_EXPORTFS

  • Off
  • Module
  • Built in

CONFIG_EXPORTFS_BLOCK_OPS Enable filesystem export operations for block IO

On

This option enables the export operations for a filesystem to support external block IO.

CONFIG_FILE_LOCKING Enable POSIX file locking API

On

This option enables standard file locking support, required for filesystems like NFS and for the flock() system call. Disabling this option saves about 11k.

Default
  • y
Includefs/crypto/Kconfig Open file
Includefs/verity/Kconfig Open file
Includefs/notify/Kconfig Open file
Includefs/quota/Kconfig Open file
Includefs/autofs/Kconfig Open file
Includefs/fuse/Kconfig Open file
Includefs/overlayfs/Kconfig Open file

Caches

Includefs/netfs/Kconfig Open file
Includefs/cachefiles/Kconfig Open file
End of Caches

If BLOCK

CD-ROM/DVD Filesystems

Includefs/isofs/Kconfig Open file
Includefs/udf/Kconfig Open file
End of CD-ROM/DVD Filesystems

If BLOCK

DOS/FAT/EXFAT/NT Filesystems

Includefs/fat/Kconfig Open file
Includefs/exfat/Kconfig Open file
Includefs/ntfs/Kconfig Open file
Includefs/ntfs3/Kconfig Open file
End of DOS/FAT/EXFAT/NT Filesystems

Pseudo filesystems

Includefs/proc/Kconfig Open file
Includefs/kernfs/Kconfig Open file
Includefs/sysfs/Kconfig Open file

CONFIG_TMPFS Tmpfs virtual memory file system support (former shm fs)

On

Tmpfs is a file system which keeps all files in virtual memory.

Everything in tmpfs is temporary in the sense that no files will be created on your hard drive. The files live in memory and swap space. If you unmount a tmpfs instance, everything stored therein is lost.

See <file:Documentation/filesystems/tmpfs.rst> for details.

If TMPFS

CONFIG_TMPFS_POSIX_ACL Tmpfs POSIX Access Control Lists

On

POSIX Access Control Lists (ACLs) support additional access rights for users and groups beyond the standard owner/group/world scheme, and this option selects support for ACLs specifically for tmpfs filesystems.

If you've selected TMPFS, it's possible that you'll also need this option as there are a number of Linux distros that require POSIX ACL support under /dev for certain features to work properly. For example, some distros need this feature for ALSA-related /dev files for sound to work properly. In short, if you're not sure, say Y.

CONFIG_TMPFS_XATTR Tmpfs extended attributes

On

Extended attributes are name:value pairs associated with inodes by the kernel or by users (see the attr(5) manual page for details).

This enables support for the trusted.*, security.* and user.* namespaces.

You need this for POSIX ACL support on tmpfs.

If unsure, say N.

CONFIG_TMPFS_INODE64 Use 64-bit ino_t by default in tmpfs

On

tmpfs has historically used only inode numbers as wide as an unsigned int. In some cases this can cause wraparound, potentially resulting in multiple files with the same inode number on a single device. This option makes tmpfs use the full width of ino_t by default, without needing to specify the inode64 option when mounting.

But if a long-lived tmpfs is to be accessed by 32-bit applications so ancient that opening a file larger than 2GiB fails with EINVAL, then the INODE64 config option and inode64 mount option risk operations failing with EOVERFLOW once 33-bit inode numbers are reached.

To override this configured default, use the inode32 or inode64 option when mounting.

If unsure, say N.

Default

CONFIG_TMPFS_QUOTA Tmpfs quota support

On

Quota support allows to set per user and group limits for tmpfs usage. Say Y to enable quota support. Once enabled you can control user and group quota enforcement with quota, usrquota and grpquota mount options.

If unsure, say N.

CONFIG_ARCH_SUPPORTS_HUGETLBFS

On
Default
  • n

If HUGETLBFS

CONFIG_HUGETLB_PAGE_OPTIMIZE_VMEMMAP_DEFAULT_ON HugeTLB Vmemmap Optimization (HVO) defaults to on

On

The HugeTLB Vmemmap Optimization (HVO) defaults to off. Say Y here to enable HVO by default. It can be disabled via hugetlb_free_vmemmap=off (boot command line) or hugetlb_optimize_vmemmap (sysctl).

CONFIG_ARCH_HAS_GIGANTIC_PAGE

On
Includefs/configfs/Kconfig Open file
Includefs/efivarfs/Kconfig Open file
End of Pseudo filesystems

CONFIG_MISC_FILESYSTEMS Miscellaneous filesystems

On

Say Y here to get to see options for various miscellaneous filesystems, such as filesystems that came from other operating systems.

This option alone does not add any kernel code.

If you say N, all options in this submenu will be skipped and disabled; if unsure, say Y here.

Default
  • y

If MISC_FILESYSTEMS

Includefs/orangefs/Kconfig Open file
Includefs/adfs/Kconfig Open file
Includefs/affs/Kconfig Open file
Includefs/ecryptfs/Kconfig Open file
Includefs/hfs/Kconfig Open file
Includefs/hfsplus/Kconfig Open file
Includefs/befs/Kconfig Open file
Includefs/jffs2/Kconfig Open file
Includefs/ubifs/Kconfig Open file
Includefs/cramfs/Kconfig Open file
Includefs/squashfs/Kconfig Open file
Includefs/minix/Kconfig Open file
Includefs/omfs/Kconfig Open file
Includefs/hpfs/Kconfig Open file
Includefs/qnx4/Kconfig Open file
Includefs/qnx6/Kconfig Open file
Includefs/resctrl/Kconfig Open file
Includefs/romfs/Kconfig Open file
Includefs/pstore/Kconfig Open file
Includefs/ufs/Kconfig Open file
Includefs/erofs/Kconfig Open file
Includefs/vboxsf/Kconfig Open file

CONFIG_NETWORK_FILESYSTEMS Network File Systems

On

Say Y here to get to see options for network filesystems and filesystem-related networking code, such as NFS daemon and RPCSEC security modules.

This option alone does not add any kernel code.

If you say N, all options in this submenu will be skipped and disabled; if unsure, say Y here.

Default

If NETWORK_FILESYSTEMS

Includefs/nfs/Kconfig Open file
Includefs/nfsd/Kconfig Open file

CONFIG_GRACE_PERIOD

  • Off
  • Module
  • Built in

CONFIG_NFS_LOCALIO NFS client and server support for LOCALIO auxiliary protocol

On

Some NFS servers support an auxiliary NFS LOCALIO protocol that is not an official part of the NFS protocol.

This option enables support for the LOCALIO protocol in the kernel's NFS server and client. Enable this to permit local NFS clients to bypass the network when issuing reads and writes to the local NFS server.

If unsure, say N.

Includenet/sunrpc/Kconfig Open file
Includefs/ceph/Kconfig Open file
Includefs/smb/Kconfig Open file
Includefs/coda/Kconfig Open file
Includefs/afs/Kconfig Open file
Includefs/9p/Kconfig Open file
Includefs/nls/Kconfig Open file
Includefs/dlm/Kconfig Open file
Includefs/unicode/Kconfig Open file

CONFIG_IO_WQ

On

CONFIG_FDTABLE_KUNIT_TEST KUnit test for fdtable

Unknown

This builds the fdtable KUnit tests, which tests various aspects of the fdtable structure and allocation.

End of File systems