anchor.diff:  -include_lib("cluster_worker/include/modules/datastore/datastore.hrl").
   -include_lib("storage_file_manager_errors.hrl").
   -include_lib("ctool/include/logging.hrl").
  +-include_lib("annotations/include/annotations.hrl").
   
   -export([new_handle/5]).
   -export([mkdir/2, mkdir/3, mv/2, chmod/2, chown/3, link/2]).
  
positive.code: %% @doc Opens file in write mode and checks necessary permissions.
  %%--------------------------------------------------------------------
  -spec open_for_write(handle()) -> {ok, handle()} | error_reply().
  %%-check_permissions([{?write_object, 1}]). todo add uuid to LfmHandle
  open_for_write(LfmHandle) ->
      open_impl(LfmHandle#sfm_handle{session_id = ?ROOT_SESS_ID}, write).
  
  
negative.code: %% @doc Opens file in read mode and checks necessary permissions.
  %%--------------------------------------------------------------------
  -spec open_for_read(handle()) -> {ok, handle()} | error_reply().
  -check_permissions([{?read_object, 1}]).
  open_for_read(LfmHandle) ->
      open_impl(LfmHandle#sfm_handle{session_id = ?ROOT_SESS_ID}, read).
  
  