From ab246d23566d7da1a41479b688833f47976b6428 Mon Sep 17 00:00:00 2001 From: "John L. Hammond" Date: Tue, 21 Aug 2018 16:14:36 -0500 Subject: [PATCH] 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 --- lustre/mdd/mdd_object.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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; -- 1.8.3.1