Whamcloud - gitweb
LU-10750 mdd: declare changelogs only when enabled 77/31477/8
authorJohn L. Hammond <john.hammond@intel.com>
Thu, 1 Mar 2018 16:02:09 +0000 (10:02 -0600)
committerOleg Drokin <oleg.drokin@intel.com>
Mon, 12 Mar 2018 14:16:49 +0000 (14:16 +0000)
commite8bafb17ed102626adc6ae0806279f95c8cdd2b3
treeb5e361eaf2f330f2aaddb8efeef3b4784b31ac13
parentb231e3ae5cf7df6abf1fbd683589f0fcff2de03f
LU-10750 mdd: declare changelogs only when enabled

In the mdd layer, rename recording_changelog() to
mdd_changelog_enabled() and add the changelog record type as a
parameter. In mdd_changelog_enabled() test to see if the type is
enabled in addition to checking is changelogs are generally enabled
and only lookup the ucred if the other tests pass. Add a type
parameter to mdd_declare_changelog_store() so that this information
can be passed to mdd_declare_changelog_store(). In mdd_close() check
if CLOSE changelogs are enabled before opening a transaction and
declaring the record.

Signed-off-by: John L. Hammond <john.hammond@intel.com>
Change-Id: Idd7604de5e97bad72a802cb4b49dae4668b2644a
Reviewed-on: https://review.whamcloud.com/31477
Tested-by: Jenkins
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Sebastien Buisson <sbuisson@ddn.com>
Reviewed-by: Quentin Bouget <quentin.bouget@cea.fr>
lustre/mdd/mdd_dir.c
lustre/mdd/mdd_internal.h
lustre/mdd/mdd_object.c