Whamcloud - gitweb
LU-11017 quota: ignore quota for CAP_SYS_RESOURCE properly 78/32378/10
authorWang Shilong <wshilong@ddn.com>
Wed, 16 May 2018 02:13:13 +0000 (10:13 +0800)
committerOleg Drokin <oleg.drokin@intel.com>
Tue, 29 May 2018 04:55:08 +0000 (04:55 +0000)
commit8aa8a920efd7ed8f217563df84905f972a16ad85
treeab5ba24210b63cb456bb883fd4c00bd87acb09c4
parent313ac16698dba613c079303565c8db52c4066d5e
LU-11017 quota: ignore quota for CAP_SYS_RESOURCE properly

Currently, lustre quota will ignore this type of quota if
quota id is 0 or we force to ignore.

For write, we have passed CAP_SYS_RESOURCE properly, but
For metadata operations this is not done.

Test-Parameters: testlist=sanity-quota
Change-Id: Ibcdc0e53ad125042d4889ac51a9a9ead4066c0c8
Signed-off-by: Wang Shilong <wshilong@ddn.com>
Reviewed-on: https://review.whamcloud.com/32378
Tested-by: Jenkins
Reviewed-by: Fan Yong <fan.yong@intel.com>
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Yingjin Qian <qian@ddn.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/include/dt_object.h
lustre/lod/lod_sub_object.c
lustre/mdd/mdd_trans.c
lustre/osd-ldiskfs/osd_quota.c
lustre/osd-zfs/osd_quota.c
lustre/tests/sanity-quota.sh