anchor.diff:  
   %% API
   -export([get_file_location/2, get_file_location/3, get_new_file_location/3,
  -         register_file_block/3, create_file_ack/1, file_not_used/1, renew_file_location/1]).
  +    register_file_block/3, update_file_block_map/2, create_file_ack/1,
  +    file_not_used/1, renew_file_location/1]).
   
   %% ====================================================================
   %% API functions
  
positive.code:     {ok, #space_info{space_id = SpaceId}} = fslogic_utils:get_space_info_for_path(FullFileName),
      {ok, #db_document{record = Storage}} = fslogic_objects:get_storage({uuid, StorageUUID}),
  
      BlockAvailability = #filelocation_blockavailability{offset = Offset, size = Size},
  
      {ok, Descriptors} = dao_lib:apply(dao_vfs, list_descriptors, [{by_file, FullFileName}, 10000000000, 0], fslogic_context:get_protocol_version()),
  
      utils:pforeach(
          fun(#db_document{record = #file_descriptor{fuse_id = FuseId}}) ->
              {_, FileId} = fslogic_utils:get_sh_and_id(FuseId, Storage, SpaceId),
              BlocksAvailable = #blocksavailable{storage_id = Storage#storage_info.id, file_id = FileId, blocks = [BlockAvailability]},
              request_dispatcher:send_to_fuse(FuseId, BlocksAvailable, "fuse_messages")
          end, Descriptors),
  
      {ok, length(Descriptors)}.
  
  
negative.code:     fslogic_file:fix_storage_owner(FileDoc),
  
      {ok, UserDoc} = fslogic_objects:get_user(),
      ok = fslogic_perms:check_file_perms(FullFileName, UserDoc, FileDoc, list_to_existing_atom(OpenMode)),
  
      % cache all permissions
      case FileDoc#db_document.record#file.perms of
          Mask when (Mask band (?RWE_USR_PERM bor ?RWE_GRP_PERM bor ?RWE_OTH_PERM)) == 0 ->
              fslogic_perms:check_file_perms(FullFileName, UserDoc, FileDoc, rdwr),
              fslogic_perms:check_file_perms(FullFileName, UserDoc, FileDoc, execute),
              fslogic_perms:check_file_perms(FullFileName, UserDoc, FileDoc, delete);
          _ -> ok
      end,
  
      {ok, _} = fslogic_objects:save_file_descriptor(fslogic_context:get_protocol_version(), FileDoc#db_document.uuid, fslogic_context:get_fuse_id(), Validity),
  
      #db_document{record = FileLoc} = FileLocDoc = fslogic_file:get_file_local_location_doc(FileDoc),
  
  