X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/2db530ae7af2f2d5b9b80877117816279279d7c3..7252fa251634f51cf28f3b286b20b9d55fbc2702:/src/surf/storage.c?ds=sidebyside diff --git a/src/surf/storage.c b/src/surf/storage.c index cd5753992d..8165a30b64 100644 --- a/src/surf/storage.c +++ b/src/surf/storage.c @@ -49,18 +49,7 @@ static surf_action_t storage_action_stat(void *storage, int fd, void* buf) static void* storage_create_resource(const char* id, const char* type, const char* content, xbt_dict_t storage_properties) { - xbt_assert(!surf_storage_resource_by_name(id), - "Storage '%s' declared several times in the platform file", - id); - XBT_DEBUG("Storage_create_resource '%s' at level SURF_STORAGE_LEVEL",id); - surf_storage_t storage = NULL; - storage = (surf_storage_t) surf_resource_new(sizeof(s_surf_storage_t), - surf_storage_model, id, storage_properties); - storage->type = type; - storage->content = content; - xbt_lib_set(storage_lib, id, SURF_STORAGE_LEVEL, storage); - - return storage; + return NULL; } static void storage_finalize(void) @@ -136,29 +125,29 @@ static void storage_action_set_priority(surf_action_t action, double priority) static void parse_storage_init(sg_platf_storage_cbarg_t storage) { - XBT_INFO("parse_storage_init"); + XBT_DEBUG("parse_storage_init"); } static void parse_mstorage_init(sg_platf_mstorage_cbarg_t mstorage) { - XBT_INFO("parse_mstorage_init"); + XBT_DEBUG("parse_mstorage_init"); } static void parse_storage_type_init(sg_platf_storage_type_cbarg_t storagetype_) { - XBT_INFO("parse_storage_type_init"); + XBT_DEBUG("parse_storage_type_init"); } static void parse_mount_init(sg_platf_mount_cbarg_t mount) { - XBT_INFO("parse_mount_init"); + XBT_DEBUG("parse_mount_init"); } static void storage_define_callbacks() { sg_platf_storage_add_cb(parse_storage_init); - sg_platf_mstorage_add_cb(parse_mstorage_init); sg_platf_storage_type_add_cb(parse_storage_type_init); + sg_platf_mstorage_add_cb(parse_mstorage_init); sg_platf_mount_add_cb(parse_mount_init); }