anchor.diff:              FileUuid = file_ctx:get_uuid_const(FileCtx2),
               FileGuid = file_ctx:get_guid_const(FileCtx2),
               SpaceId = file_ctx:get_space_id_const(FileCtx2),
  -            NewFileBlocks = [#file_block{offset = 0, size = StSize}],
  +            NewFileBlocks = create_file_blocks(StSize),
               replica_updater:update(FileCtx2, NewFileBlocks, StSize, true),
               ok = lfm_event_utils:emit_file_written(FileGuid, NewFileBlocks, StSize, ?ROOT_SESS_ID),
               storage_sync_info:update_mtime(FileUuid, StMtime, SpaceId),
  
positive.code:             scope = SpaceId
          }),
      ok.
  
  %%-------------------------------------------------------------------
  %% @private
  
negative.code:         size = Size,
          storage_file_created = true
      },
      Location2 = fslogic_blocks:set_blocks(Location, create_file_blocks(Size)),
      {ok, _LocId} = file_location:save_and_bump_version(
          #document{
              key = file_location:local_id(FileUuid),
  