]> AND Public Git Repository - simgrid.git/blobdiff - src/simix/smx_io.c
Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Merge branch 'master' of git+ssh://scm.gforge.inria.fr//gitroot/simgrid/simgrid
[simgrid.git] / src / simix / smx_io.c
index 08d7da0c70e038982dcee6157e7041699d68f1c7..dde44a38c462e3ce35f3699864431a42529e8f91 100644 (file)
@@ -5,6 +5,7 @@
  * 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"
@@ -313,7 +314,8 @@ void SIMIX_post_io(smx_action_t action)
       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: