Whamcloud - gitweb
LU-4017 quota: add project id support 12/25812/10
authorOleg Drokin <oleg.drokin@intel.com>
Sun, 9 Apr 2017 07:02:01 +0000 (03:02 -0400)
committerOleg Drokin <oleg.drokin@intel.com>
Thu, 13 Apr 2017 06:22:15 +0000 (06:22 +0000)
commit97fbb61dbe261a389897779ae376cfc3808442cf
tree0e09af30ec66f74a0a5144cc87aeb11416fb2dd4
parent5a0094765d8d5fbfe361ef5518ad44c3fd336f07
LU-4017 quota: add project id support

This patch is infrastrcuture change for Lustre project quota,
project ID is considered as file attribute like UID/GID,
MDS will return back project id to client upon open/getattr.

Extend llog_setattr64_rec_v2 to be able to store project
ID, upgrade from old format could be handled properly,
if you want to downgrade again, need to make sure llog
have been handled completely.

Change-Id: Id7d27188f22169d6cffb74ea8b792ad4b133ef1d
Signed-off-by: Wang Shilong <wshilong@ddn.com>
Signed-off-by: Oleg Drokin <oleg.drokin@intel.com>
Reviewed-on: https://review.whamcloud.com/25812
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Li Xi <lixi@ddn.com>
Reviewed-by: Niu Yawei <yawei.niu@intel.com>
30 files changed:
lustre/include/lu_object.h
lustre/include/lustre/lustre_idl.h
lustre/include/obd.h
lustre/llite/llite_internal.h
lustre/llite/llite_lib.c
lustre/llite/vvp_object.c
lustre/lod/lod_object.c
lustre/mdt/mdt_handler.c
lustre/mdt/mdt_lib.c
lustre/mdt/mdt_reint.c
lustre/obdclass/linux/linux-obdo.c
lustre/obdclass/llog_swab.c
lustre/obdclass/obdo.c
lustre/ofd/ofd_dev.c
lustre/ofd/ofd_internal.h
lustre/ofd/ofd_io.c
lustre/ofd/ofd_obd.c
lustre/ofd/ofd_objects.c
lustre/osd-ldiskfs/osd_handler.c
lustre/osd-ldiskfs/osd_internal.h
lustre/osd-ldiskfs/osd_io.c
lustre/osd-ldiskfs/osd_quota.c
lustre/osp/osp_internal.h
lustre/osp/osp_object.c
lustre/osp/osp_sync.c
lustre/ptlrpc/pack_generic.c
lustre/ptlrpc/wiretest.c
lustre/utils/obd.c
lustre/utils/wirecheck.c
lustre/utils/wiretest.c