Whamcloud - gitweb
LU-10579 mdd: emit changelogs for security and trusted xattrs 48/33048/3
authorJohn L. Hammond <jhammond@whamcloud.com>
Tue, 21 Aug 2018 21:14:36 +0000 (16:14 -0500)
committerJohn L. Hammond <jhammond@whamcloud.com>
Mon, 8 Oct 2018 16:27:13 +0000 (16:27 +0000)
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 <jhammond@whamcloud.com>
Change-Id: I08cf6a293ac33dfb4b15a04000e301c516d7bd95
Reviewed-on: https://review.whamcloud.com/33048
Tested-by: Jenkins
Reviewed-by: Mike Pershin <mpershin@whamcloud.com>
Tested-by: Maloo <hpdd-maloo@intel.com>
lustre/mdd/mdd_object.c

index 41031dc..7b0f46b 100644 (file)
@@ -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;