]> git.baikalelectronics.ru Git - kernel.git/commit
xfs: Split default quota limits by quota type
authorCarlos Maiolino <cmaiolino@redhat.com>
Mon, 8 Feb 2016 00:27:55 +0000 (11:27 +1100)
committerDave Chinner <david@fromorbit.com>
Mon, 8 Feb 2016 00:27:55 +0000 (11:27 +1100)
commit0eebc26275e3cb18185e726f10d1f7c8bc2f784a
tree0f4454763b5f89cd966387414a64c067640b244e
parentd46d9b5b11d976f6f0c9810081747f4165fd47f3
xfs: Split default quota limits by quota type

Default quotas are globally set due historical reasons. IRIX only
supported user and project quotas, and default quota was only
applied to user quotas.

In Linux, when a default quota is set, all different quota types
inherits the same default value.

An user with a quota limit larger than the default quota value, will
still be limited to the default value because the group quotas also
inherits the default quotas. Unless the group which the user belongs
to have a custom quota limit set.

This patch aims to split the default quota value by quota type.
Allowing each quota type having different default values.

Default time limits are still set globally. XFS does not set a
per-user/group timer, but a single global timer. For changing this
behavior, some changes should be made in user-space tools another
bugs being fixed.

Signed-off-by: Carlos Maiolino <cmaiolino@redhat.com>
Reviewed-by: Eric Sandeen <sandeen@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
fs/xfs/xfs_dquot.c
fs/xfs/xfs_qm.c
fs/xfs/xfs_qm.h
fs/xfs/xfs_qm_syscalls.c
fs/xfs/xfs_trans_dquot.c