+ /* For the moment this action has no cost, but in the future we could take in account access latency of the disk */
+ /*surf_action_t action = storage_action_execute(storage,0, LS);*/
+
+ void *storage_resource = surf_storage_resource_priv(storage);
+ xbt_dict_t content_dict = xbt_dict_new_homogeneous(NULL);
+ xbt_dict_cursor_t cursor = NULL;
+ char *file;
+ sg_storage_size_t *psize;
+
+ xbt_dict_foreach(((storage_t)storage_resource)->content, cursor, file, psize){
+ xbt_dict_set(content_dict,file,psize,NULL);
+ }
+ return content_dict;
+}
+
+static sg_storage_size_t storage_get_size(void *storage){
+ void *storage_resource = surf_storage_resource_priv(storage);
+ return ((storage_t)storage_resource)->size;
+}
+
+static void storage_file_rename(void *storage, const char *src, const char *dest)
+{
+ void *storage_resource = surf_storage_resource_priv(storage);
+
+ sg_storage_size_t *psize;
+ psize = (sg_storage_size_t*) xbt_dict_get_or_null(((storage_t)storage_resource)->content,src);
+ if (psize){// src file exists
+ xbt_dict_remove(((storage_t)storage_resource)->content, src);
+ xbt_dict_set(((storage_t)storage_resource)->content, dest, psize,NULL);
+ XBT_DEBUG("Change file name from %s to %s, size '%" PRIu64 "'",src, dest, *psize);
+ }
+ else
+ XBT_DEBUG("File %s doesn't exist",src);
+}
+
+
+static void* storage_create_resource(const char* id, const char* model,
+ const char* type_id, const char* content_name, const char* content_type, xbt_dict_t properties){