]> git.proxmox.com Git - mirror_ubuntu-artful-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)
commitbe6079461abf796e29d02b450a16908f4bf58f6c
tree0f4454763b5f89cd966387414a64c067640b244e
parent296c24e26ee3af2dbfecb482e6bc9560bd34c455
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