X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/45c3f1cfee86fb48c96d53f8267f99b6db6e3d7a..49ae6e61753b41f28accc4c0890097286d660e9f:/src/msg/msg_host.c diff --git a/src/msg/msg_host.c b/src/msg/msg_host.c index 5c2eec831c..4940e295c1 100644 --- a/src/msg/msg_host.c +++ b/src/msg/msg_host.c @@ -51,6 +51,7 @@ msg_host_t __MSG_host_create(smx_host_t workstation) priv->dp_objs = xbt_dict_new(); priv->dp_enabled = 0; priv->dp_updated_by_deleted_tasks = 0; + priv->is_migrating = 0; priv->affinity_mask_db = xbt_dict_new_homogeneous(NULL); @@ -402,10 +403,21 @@ double MSG_get_host_consumed_energy(msg_host_t host) { * \param host a host * \return a dict containing all mount point on the host (mount_name => msg_storage_t) */ -xbt_dict_t MSG_host_get_storage_list(msg_host_t host) +xbt_dict_t MSG_host_get_mounted_storage_list(msg_host_t host) { xbt_assert((host != NULL), "Invalid parameters"); - return (simcall_host_get_storage_list(host)); + return (simcall_host_get_mounted_storage_list(host)); +} + +/** \ingroup m_host_management + * \brief Return the list of storages attached to an host. + * \param host a host + * \return a dynar containing all storages (name) attached to the host + */ +xbt_dynar_t MSG_host_get_attached_storage_list(msg_host_t host) +{ + xbt_assert((host != NULL), "Invalid parameters"); + return (simcall_host_get_attached_storage_list(host)); } /** \ingroup msg_host_management @@ -422,7 +434,7 @@ xbt_dict_t MSG_host_get_storage_content(msg_host_t host) char* mount_name; xbt_dict_cursor_t cursor = NULL; - xbt_dict_t storage_list = simcall_host_get_storage_list(host); + xbt_dict_t storage_list = simcall_host_get_mounted_storage_list(host); xbt_dict_foreach(storage_list,cursor,mount_name,storage_name){ storage = (msg_storage_t)xbt_lib_get_elm_or_null(storage_lib,storage_name);