162306a36Sopenharmony_ci# SPDX-License-Identifier: GPL-2.0-only
262306a36Sopenharmony_ci#
362306a36Sopenharmony_ci#  Quota configuration
462306a36Sopenharmony_ci#
562306a36Sopenharmony_ci
662306a36Sopenharmony_ciconfig QUOTA
762306a36Sopenharmony_ci	bool "Quota support"
862306a36Sopenharmony_ci	select QUOTACTL
962306a36Sopenharmony_ci	help
1062306a36Sopenharmony_ci	  If you say Y here, you will be able to set per user limits for disk
1162306a36Sopenharmony_ci	  usage (also called disk quotas). Currently, it works for the
1262306a36Sopenharmony_ci	  ext2, ext3, ext4, f2fs, jfs, ocfs2 and reiserfs file systems.
1362306a36Sopenharmony_ci	  Note that gfs2 and xfs use their own quota system.
1462306a36Sopenharmony_ci	  Ext3, ext4 and reiserfs also support journaled quotas for which
1562306a36Sopenharmony_ci	  you don't need to run quotacheck(8) after an unclean shutdown.
1662306a36Sopenharmony_ci	  For further details, read the Quota mini-HOWTO, available from
1762306a36Sopenharmony_ci	  <https://www.tldp.org/docs.html#howto>, or the documentation provided
1862306a36Sopenharmony_ci	  with the quota tools. Probably the quota support is only useful for
1962306a36Sopenharmony_ci	  multi user systems. If unsure, say N.
2062306a36Sopenharmony_ci
2162306a36Sopenharmony_ciconfig QUOTA_NETLINK_INTERFACE
2262306a36Sopenharmony_ci	bool "Report quota messages through netlink interface"
2362306a36Sopenharmony_ci	depends on QUOTACTL && NET
2462306a36Sopenharmony_ci	help
2562306a36Sopenharmony_ci	  If you say Y here, quota warnings (about exceeding softlimit, reaching
2662306a36Sopenharmony_ci	  hardlimit, etc.) will be reported through netlink interface. If unsure,
2762306a36Sopenharmony_ci	  say Y.
2862306a36Sopenharmony_ci
2962306a36Sopenharmony_ciconfig PRINT_QUOTA_WARNING
3062306a36Sopenharmony_ci	bool "Print quota warnings to console (OBSOLETE)"
3162306a36Sopenharmony_ci	depends on QUOTA && BROKEN
3262306a36Sopenharmony_ci	default y
3362306a36Sopenharmony_ci	help
3462306a36Sopenharmony_ci	  If you say Y here, quota warnings (about exceeding softlimit, reaching
3562306a36Sopenharmony_ci	  hardlimit, etc.) will be printed to the process' controlling terminal.
3662306a36Sopenharmony_ci	  Note that this behavior is currently deprecated and may go away in
3762306a36Sopenharmony_ci	  future. Please use notification via netlink socket instead.
3862306a36Sopenharmony_ci
3962306a36Sopenharmony_ciconfig QUOTA_DEBUG
4062306a36Sopenharmony_ci	bool "Additional quota sanity checks"
4162306a36Sopenharmony_ci	depends on QUOTA
4262306a36Sopenharmony_ci	default n
4362306a36Sopenharmony_ci	help
4462306a36Sopenharmony_ci	  If you say Y here, quota subsystem will perform some additional
4562306a36Sopenharmony_ci	  sanity checks of quota internal structures. If unsure, say N.
4662306a36Sopenharmony_ci
4762306a36Sopenharmony_ci# Generic support for tree structured quota files. Selected when needed.
4862306a36Sopenharmony_ciconfig QUOTA_TREE
4962306a36Sopenharmony_ci	 tristate
5062306a36Sopenharmony_ci
5162306a36Sopenharmony_ciconfig QFMT_V1
5262306a36Sopenharmony_ci	tristate "Old quota format support"
5362306a36Sopenharmony_ci	depends on QUOTA
5462306a36Sopenharmony_ci	help
5562306a36Sopenharmony_ci	  This quota format was (is) used by kernels earlier than 2.4.22. If
5662306a36Sopenharmony_ci	  you have quota working and you don't want to convert to new quota
5762306a36Sopenharmony_ci	  format say Y here.
5862306a36Sopenharmony_ci
5962306a36Sopenharmony_ciconfig QFMT_V2
6062306a36Sopenharmony_ci	tristate "Quota format vfsv0 and vfsv1 support"
6162306a36Sopenharmony_ci	depends on QUOTA
6262306a36Sopenharmony_ci	select QUOTA_TREE
6362306a36Sopenharmony_ci	help
6462306a36Sopenharmony_ci	  This config option enables kernel support for vfsv0 and vfsv1 quota
6562306a36Sopenharmony_ci	  formats. Both these formats support 32-bit UIDs/GIDs and vfsv1 format
6662306a36Sopenharmony_ci	  also supports 64-bit inode and block quota limits. If you need this
6762306a36Sopenharmony_ci	  functionality say Y here.
6862306a36Sopenharmony_ci
6962306a36Sopenharmony_ciconfig QUOTACTL
7062306a36Sopenharmony_ci	bool
7162306a36Sopenharmony_ci	default n
72