anchor.diff:      ?CDMI_COMPLETION_STATUS_KEY,
       ?JSON_METADATA_KEY,
       ?RDF_METADATA_KEY,
  -    ?XATTR_KEY
  +    ?XATTR_1_KEY,
  +    ?XATTR_2_KEY
   ]).
   
   -define(ALL_METADATA_SET_1, #{
  
positive.code:                     case ShareId of
                          undefined when Client == ?USER_IN_SPACE_2_AUTH ->
                              % User belonging to the same space as owner of files
                              % shouldn't be able to get inherited json metadata or not set xattr
                              % due to insufficient perms on Dir1. But can get all other xattrs
                              % as the first found value is returned and ancestors aren't
                              % traversed further (json metadata is exceptional since it
                              % collects all ancestors jsons and merges them)
                              case lists:member(?JSON_METADATA_KEY, XattrsToGet) orelse lists:member(NotSetXattrKey, XattrsToGet) of
                                  true ->
                                      throw(?ERROR_POSIX(?EACCES));
                                  false ->
  
negative.code:             XattrsToGet = case Attribute of
                  undefined ->
                      case {DirectMetadataSet, IncludeInherited, ShareId, ShowInternal} of
                          {true, true, undefined, true} ->
                              ?ALL_XATTRS_KEYS;
                          {true, true, undefined, false} ->
                              % Only custom xattrs are shown
                              [?XATTR_1_KEY, ?XATTR_2_KEY];
                          {true, true, _ShareId, true} ->
                              % Xattr1 cannot be fetched as it is above share root
                              ?ALL_XATTRS_KEYS -- [?XATTR_1_KEY];
                          {true, true, _ShareId, false} ->
                              [?XATTR_2_KEY];
                          {true, false, _, true} ->
                              ?ALL_XATTRS_KEYS -- [?XATTR_1_KEY];
                          {true, false, _, false} ->
                              [?XATTR_2_KEY];
                          {false, true, undefined, true} ->
                              % Exclude cdmi attrs as those are not inherited and xattr2 as it is not set
                              (?ALL_XATTRS_KEYS -- [?XATTR_2_KEY]) -- ?CDMI_XATTRS_KEY;
                          {false, true, undefined, false} ->
                              [?XATTR_1_KEY];
                          {false, _, _, _} ->
                              % No xattr could be inherited due to either not specified
                              % 'inherited' flag or share root blocking further traverse
                              []
                      end;
                  _ ->
  