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