From: John L. Hammond Date: Tue, 21 Aug 2018 21:14:36 +0000 (-0500) Subject: LU-10579 mdd: emit changelogs for security and trusted xattrs X-Git-Tag: 2.10.6-RC2~10 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=refs%2Fchanges%2F48%2F33048%2F3;p=fs%2Flustre-release.git LU-10579 mdd: emit changelogs for security and trusted xattrs In mdd_xattr_changelog_type() include security.* and trusted.* among the xattr names for which we emit a changelog record. This was done in 2.11 by https://review.whamcloud.com/28251 LU-9727 lustre: add CL_GETXATTR for Changelogs. Test-Parameters: trivial testlist=lustre-rsync-test Signed-off-by: John L. Hammond Change-Id: I08cf6a293ac33dfb4b15a04000e301c516d7bd95 Reviewed-on: https://review.whamcloud.com/33048 Tested-by: Jenkins Reviewed-by: Mike Pershin Tested-by: Maloo --- diff --git a/lustre/mdd/mdd_object.c b/lustre/mdd/mdd_object.c index 41031dc..7b0f46b 100644 --- a/lustre/mdd/mdd_object.c +++ b/lustre/mdd/mdd_object.c @@ -1018,7 +1018,9 @@ mdd_xattr_changelog_type(const struct lu_env *env, struct mdd_device *mdd, if (has_prefix(xattr_name, XATTR_USER_PREFIX) || has_prefix(xattr_name, XATTR_NAME_POSIX_ACL_ACCESS) || - has_prefix(xattr_name, XATTR_NAME_POSIX_ACL_DEFAULT)) + has_prefix(xattr_name, XATTR_NAME_POSIX_ACL_DEFAULT) || + has_prefix(xattr_name, XATTR_TRUSTED_PREFIX) || + has_prefix(xattr_name, XATTR_SECURITY_PREFIX)) return CL_XATTR; return -1;