X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/ee0aeec0c91b0d36df626e0d74ac872ae7ddac44..47f77041d376b4144af4f41f93a71e083587fd22:/src/surf/storage.c diff --git a/src/surf/storage.c b/src/surf/storage.c index 1b6bd3f43e..e9261519cd 100644 --- a/src/surf/storage.c +++ b/src/surf/storage.c @@ -55,6 +55,7 @@ static surf_action_t storage_action_open(void *storage, const char* path, const file->content = content; surf_action_t action = storage_action_execute(storage,0, DEFAULT); + action->file = (void *)file; return action; } @@ -77,6 +78,7 @@ static surf_action_t storage_action_read(void *storage, void* ptr, size_t size, if(size > content->size) size = content->size; surf_action_t action = storage_action_execute(storage,size,READ); + action->read_write = size; return action; } @@ -87,6 +89,7 @@ static surf_action_t storage_action_write(void *storage, const void* ptr, size_t XBT_DEBUG("\tWrite file '%s' size '%Zu/%Zu'",filename,size,content->size); surf_action_t action = storage_action_execute(storage,size,WRITE); + action->read_write = size; content->size += size; return action; }