^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 1) # SPDX-License-Identifier: GPL-2.0-only
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 2) #
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 3) # Quota configuration
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 4) #
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 5)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 6) config QUOTA
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 7) bool "Quota support"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 8) select QUOTACTL
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 9) select SRCU
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10) help
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11) If you say Y here, you will be able to set per user limits for disk
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12) usage (also called disk quotas). Currently, it works for the
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13) ext2, ext3, ext4, jfs, ocfs2 and reiserfs file systems.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14) Note that gfs2 and xfs use their own quota system.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15) Ext3, ext4 and reiserfs also support journaled quotas for which
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16) you don't need to run quotacheck(8) after an unclean shutdown.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 17) For further details, read the Quota mini-HOWTO, available from
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 18) <https://www.tldp.org/docs.html#howto>, or the documentation provided
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 19) with the quota tools. Probably the quota support is only useful for
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 20) multi user systems. If unsure, say N.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 21)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 22) config QUOTA_NETLINK_INTERFACE
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 23) bool "Report quota messages through netlink interface"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 24) depends on QUOTACTL && NET
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 25) help
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 26) If you say Y here, quota warnings (about exceeding softlimit, reaching
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 27) hardlimit, etc.) will be reported through netlink interface. If unsure,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 28) say Y.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 29)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 30) config PRINT_QUOTA_WARNING
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 31) bool "Print quota warnings to console (OBSOLETE)"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 32) depends on QUOTA
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 33) default y
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 34) help
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 35) If you say Y here, quota warnings (about exceeding softlimit, reaching
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 36) hardlimit, etc.) will be printed to the process' controlling terminal.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 37) Note that this behavior is currently deprecated and may go away in
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 38) future. Please use notification via netlink socket instead.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 39)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 40) config QUOTA_DEBUG
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 41) bool "Additional quota sanity checks"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 42) depends on QUOTA
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 43) default n
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 44) help
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 45) If you say Y here, quota subsystem will perform some additional
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 46) sanity checks of quota internal structures. If unsure, say N.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 47)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 48) # Generic support for tree structured quota files. Selected when needed.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 49) config QUOTA_TREE
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 50) tristate
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 51)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 52) config QFMT_V1
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 53) tristate "Old quota format support"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 54) depends on QUOTA
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 55) help
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 56) This quota format was (is) used by kernels earlier than 2.4.22. If
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 57) you have quota working and you don't want to convert to new quota
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 58) format say Y here.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 59)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 60) config QFMT_V2
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 61) tristate "Quota format vfsv0 and vfsv1 support"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 62) depends on QUOTA
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 63) select QUOTA_TREE
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 64) help
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 65) This config option enables kernel support for vfsv0 and vfsv1 quota
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 66) formats. Both these formats support 32-bit UIDs/GIDs and vfsv1 format
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 67) also supports 64-bit inode and block quota limits. If you need this
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 68) functionality say Y here.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 69)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 70) config QUOTACTL
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 71) bool
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 72) default n