- smx_activity_t synchro = SIMIX_file_read(fd, size, host);
- synchro->simcalls.push_back(simcall);
- simcall->issuer->waiting_synchro = synchro;
-}
-
-smx_activity_t SIMIX_file_read(surf_file_t file, sg_size_t size, sg_host_t host)
-{
- /* check if the host is active */
- if (host->isOff())
- THROWF(host_error, 0, "Host %s failed, you cannot call this function", host->getCname());
+ /* set surf's action */
+ simgrid::kernel::resource::Action* surf_action = storage->get_impl()->io_start(size, type);