anchor.diff:  -spec derive_gid_from_parent(Storage_helper_info :: record(), File :: string()) -> ok | {error, ErrNo :: integer()}.
   %% ====================================================================
   derive_gid_from_parent(SHInfo, File) ->
  -  case helpers:exec(getattr, SHInfo, [fslogic_path:strip_path_leaf(File)]) of
  -    {0, #st_stat{st_gid = GID}} ->
  -      Res = chown(SHInfo, File, -1, GID),
  -      ?debug("Changing gid of file ~p to ~p. Status: ~p", [File, GID, Res]),
  -      Res;
  -    {ErrNo, _} ->
  -      ?error("Cannot fetch parent dir ~p attrs. Error: ~p", [fslogic_path:strip_path_leaf(File), ErrNo]),
  -      {error, ErrNo}
  -  end.
  +    case helpers:exec(getattr, SHInfo, [fslogic_path:strip_path_leaf(File)]) of
  +        {0, #st_stat{st_gid = GID}} ->
  +            Res = chown(SHInfo, File, -1, GID),
  +            ?debug("Changing gid of file ~p to ~p. Status: ~p", [File, GID, Res]),
  +            Res;
  +        {ErrNo, _} ->
  +            ?error("Cannot fetch parent dir ~p attrs. Error: ~p", [fslogic_path:strip_path_leaf(File), ErrNo]),
  +            {error, ErrNo}
  +    end.
   
   %% get_mode/1
   %% ====================================================================
  
positive.code:                                     end,
                                  SelectedSpace0 = [SP || #space_info{space_id = X} = SP <- UserSpaces0, utils:ensure_binary(SpaceId) =:= X],
                                  SelectedSpace0;
                              _  ->
                                  SelectedSpaceId
                          end,
  
  
negative.code:     0;
  
  write_bytes(Storage_helper_info, File, Offset, Buf, FFI) ->
      ErrorCode = helpers:exec(write, Storage_helper_info, [File, Buf, Offset, FFI]),
      case ErrorCode of
          BytesNum when is_integer(BytesNum), BytesNum > 0 ->
              <<_:BytesNum/binary, NewBuf/binary>> = Buf,
              TmpErrorCode = write_bytes(Storage_helper_info, File, Offset + BytesNum, NewBuf, FFI),
              case TmpErrorCode of
                  BytesNum2 when is_integer(BytesNum2) -> BytesNum2 + BytesNum;
                  _ -> TmpErrorCode
              end;
          {error, 'NIF_not_loaded'} -> ErrorCode;
          _ ->
              {error, {wrong_write_return_code, ErrorCode}}
      end.
  
  
  %% get_cached_value/3
  