Whamcloud - gitweb
LU-4017 quota: add project inherit attributes 63/26463/10
authorWang Shilong <wshilong@ddn.com>
Fri, 7 Apr 2017 01:09:18 +0000 (09:09 +0800)
committerOleg Drokin <oleg.drokin@intel.com>
Tue, 2 May 2017 03:21:18 +0000 (03:21 +0000)
commit2e92c57d71384d50f06baf5b6591d2809c8288b2
tree24e3324175d48d837a967d17a29c4e020fc362f9
parent664bad91b5c0e2a5c9423d4b524d9906db9ef9b5
LU-4017 quota: add project inherit attributes

Add @LUSTRE_PROJINHERIT_FL inode flag which means
creating new objects parents projid, it is disabled
in default, unless setting explictly.

It is kept same inteface as Ext4/XFS, you could use
following ioctl directly:

chattr  +P <directory>

Agent inode for DNE should ignore project ID, patch also
remove some unnecessary lustre_set_wire_obdo() call for
attr fetching/updates, which mixed la flags and obdo flags.

Change-Id: I573b71c5bd7b0089172025c30c6824562444d57d
Signed-off-by: Wang Shilong <wshilong@ddn.com>
Reviewed-on: https://review.whamcloud.com/26463
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Reviewed-by: Niu Yawei <yawei.niu@intel.com>
Reviewed-by: Li Xi <lixi@ddn.com>
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/include/lustre/lustre_idl.h
lustre/mdd/mdd_dir.c
lustre/osd-ldiskfs/osd_handler.c
lustre/target/out_handler.c
lustre/target/out_lib.c
lustre/target/update_records.c