Skip to content

[redhat] New configs in fs/Kconfig

Jeremy Cline requested to merge configs/2020-08-13/fs/Kconfig into os-build

Hi,

As part of the ongoing rebase effort, the following configuration options need to be reviewed.

As a reminder, the ARK configuration flow involves moving unreviewed configuration options from the pending directory to the ark directory. In the diff below, options are removed from the pending directory and added to the ark hierarchy. The final options that need to be ACKed are the files that are being added to the ark hierarchy.

If the value for a file that is added should be changed, please reply with a better option.

CONFIG_TMPFS_INODE64:

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.

Symbol: TMPFS_INODE64 [=n] Type : bool Defined at fs/Kconfig:204 Prompt: Use 64-bit ino_t by default in tmpfs Depends on: TMPFS [=y] && 64BIT [=y] Location: -> File systems -> Pseudo filesystems -> Tmpfs virtual memory file system support (former shm fs) (TMPFS [=y])


Cc: Rafael Aquini aquini@redhat.com Signed-off-by: Fedora Kernel Team kernel-team@fedoraproject.org

Edited by Patrick Talbert

Merge request reports