* under the terms of the license (GNU LGPL) which comes with this package. */
#include "smx_private.h"
+#include "surf/storage_private.h"
#include "xbt/sysdep.h"
#include "xbt/log.h"
#include "xbt/dict.h"
simcall_file_ls__set__result(simcall, (action->io.surf_io)->ls_dict);
break;
case SIMCALL_FILE_GET_SIZE:
- simcall_file_get_size__set__result(simcall, 0);
+ simcall_file_get_size__set__result(simcall,
+ ((action->io.surf_io)->file->size));
break;
default:
static surf_action_t storage_action_get_size(void *storage, surf_file_t stream)
{
surf_action_t action = storage_action_execute(storage,0,GET_SIZE);
+ action->file = stream;
return action;
}