anchor.diff:      ErrorGeneral :: atom(),
       ErrorDetail :: term().
   %% ====================================================================
  +truncate({uuid, Uuid}, Size) -> % todo alow only FullFilePath for performance reasons
  +    case logical_files_manager:get_file_full_name_by_uuid(Uuid) of
  +        {ok, FullFilePath} -> truncate(FullFilePath, Size);
  +        Error -> Error
  +    end;
   truncate(File, Size) ->
       {Response, Response2} = getfilelocation(File),
       case Response of
  
positive.code:     ErrorGeneral :: atom(),
      ErrorDetail :: term().
  %% ====================================================================
  write(File, Buf) ->
      case write_enabled(fslogic_context:get_user_dn()) of
          true ->
  
negative.code:                                     {"bytes", Res}, {"blocks", [{FileSize - Res, Res}]}],
                                  gen_server:call(?Dispatcher_Name, {cluster_rengine, 1, {event_arrived, WriteEventStats}}),
                                  WriteEventAvailableBlocks = [{"type", "write_for_available_blocks"}, {"user_dn", fslogic_context:get_user_dn()},
                                      {"bytes", Res}, {"blocks", [{FileSize - Res, Res}]}, {"filePath", File}],
                                  gen_server:call(?Dispatcher_Name, {cluster_rengine, 1, {event_arrived, WriteEventAvailableBlocks}})
                              end);
                          _ ->
  