]> err.no Git - linux-2.6/commit
[XFS] Fix uquota and oquota enforcement problems.
authorKouta Ooizumi <k-ooizumi@tnes.nec.co.jp>
Tue, 8 May 2007 03:49:33 +0000 (13:49 +1000)
committerTim Shimmin <tes@sgi.com>
Tue, 8 May 2007 03:49:33 +0000 (13:49 +1000)
commite6d29426bc8a5d07d0eebd0842fe0cf6ecc862cd
treef1b8e35adbd87230913d8a40ddb1b228f18ce323
parentd3cf209476b72c83907a412b6708c5e498410aa7
[XFS] Fix uquota and oquota enforcement problems.

When uquota and oquota (gquota/pquota) are enabled for accounting both are
enforced if ether has enforcement active.

Conditions:

- Both XFS_UQUOTA_ACCT and XFS_GQUOTA_ACCT are enabled.

- Either XFS_UQUOTA_ENFD or XFS_OQUOTA_ENFD is enabled.

- The usage without enforce is reached at the soft limit.

Problems:

1. "repquota" shows all grace time even if no enforcement.

2. we cannot make a file over a hard limits even if no enforcement.

SGI-PV: 962291
SGI-Modid: xfs-linux-melb:xfs-kern:28272a

Signed-off-by: Kouta Ooizumi <k-ooizumi@tnes.nec.co.jp>
Signed-off-by: Donald Douwsma <donaldd@sgi.com>
Signed-off-by: Tim Shimmin <tes@sgi.com>
fs/xfs/quota/xfs_qm_syscalls.c
fs/xfs/quota/xfs_trans_dquot.c
fs/xfs/xfs_quota.h