Whamcloud - gitweb
LU-16415 quota: enforce project quota for root
authorSergey Cheremencev <scherementsev@ddn.com>
Sat, 17 Dec 2022 21:42:10 +0000 (01:42 +0400)
committerAndreas Dilger <adilger@whamcloud.com>
Wed, 8 Feb 2023 05:50:43 +0000 (05:50 +0000)
commit7c5d1ec252df0a4ca4d1e4e1acb3ad5bb3467fcf
tree68671f04f4743e5e509cfb1ecbcd1303847890d1
parentea6160baac7da8491b9174f05d3d77dbae488d88
LU-16415 quota: enforce project quota for root

Patch adds an option to enforce project quotas for root.
It is disabled by default, to enable set
osd-ldiskfs.*.quota_slave.root_prj_enable to 1
at each target where you need this option.

Patch also adds sanity-quota_1j to test new feature.

Lustre-change: https://review.whamcloud.com/49460
Lustre-commit: f147655c33ea61450105b602c82da900fd1417b5

Signed-off-by: Sergey Cheremencev <scherementsev@ddn.com>
Change-Id: I978dc8442235149794f85110309f63bc560defdc
Reviewed-by: Hongchao Zhang <hongchao@whamcloud.com>
Reviewed-by: Sebastien Buisson <sbuisson@ddn.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-on: https://review.whamcloud.com/c/ex/lustre-release/+/49812
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
15 files changed:
lustre/include/lustre_quota.h
lustre/include/obd.h
lustre/include/uapi/linux/lustre/lustre_idl.h
lustre/mdt/mdt_io.c
lustre/ofd/ofd_io.c
lustre/osc/osc_cache.c
lustre/osc/osc_quota.c
lustre/osd-ldiskfs/osd_io.c
lustre/osd-ldiskfs/osd_quota.c
lustre/osd-zfs/osd_io.c
lustre/osd-zfs/osd_quota.c
lustre/quota/qsd_handler.c
lustre/quota/qsd_internal.h
lustre/quota/qsd_lib.c
lustre/tests/sanity-quota.sh