Whamcloud - gitweb
LU-9727 lustre: implement CL_OPEN for Changelogs 14/28214/23
authorSebastien Buisson <sbuisson@ddn.com>
Tue, 25 Jul 2017 13:45:58 +0000 (09:45 -0400)
committerOleg Drokin <oleg.drokin@intel.com>
Tue, 6 Feb 2018 04:26:33 +0000 (04:26 +0000)
commit21fb4d93a94ef3876051fed31c5ef0c33f484f9d
tree5f7a595337bf15b49636ad7556e825de213e7ef7
parentd2629cfcabfa3a22ddf4a6c474364d0012d80390
LU-9727 lustre: implement CL_OPEN for Changelogs

Record OPEN events in Changelogs, and add a new changelog
extension named changelog_ext_openmode to hold open mode.
An OPEN changlog entry is in the form:
7 10OPEN  13:38:51.510728296 2017.07.25 0x242
t=[0x200000401:0x2:0x0] ef=0x7 u=500:500 nid=10.128.11.159@tcp m=-w-
By default, disable recording of OPEN events in Changelogs.
Note that CREAT are still recorded even if OPEN are disabled.

Signed-off-by: Sebastien Buisson <sbuisson@ddn.com>
Change-Id: I72c479938ab4782523f1b16aef19fbbc96f43c7f
Reviewed-on: https://review.whamcloud.com/28214
Tested-by: Jenkins
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Li Xi <lixi@ddn.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/include/uapi/linux/lustre/lustre_idl.h
lustre/include/uapi/linux/lustre/lustre_user.h
lustre/mdc/mdc_changelog.c
lustre/mdd/mdd_dir.c
lustre/mdd/mdd_internal.h
lustre/mdd/mdd_object.c
lustre/obdclass/llog_osd.c
lustre/utils/lfs.c
lustre/utils/liblustreapi_chlg.c
lustre/utils/lustre_rsync.c