Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Add msg_storage_t structure, msg_storage_get_free_size function
[simgrid.git] / src / msg / msg_io.c
index e6cade0..6893083 100644 (file)
@@ -120,3 +120,14 @@ xbt_dict_t MSG_file_ls(const char *mount, const char *path)
 
   return simcall_file_ls(mount, path);
 }
+
+/** \ingroup msg_storage_management
+ * \brief Return the free space size of a storage element
+ *
+ * \param sd is the storage descriptor (#msg_storage_t)
+ * \return the free space size of the storage element (as a size_t)
+ */
+
+size_t MSG_storage_get_free_size(msg_storage_t sd){
+  return simcall_storage_get_free_size(sd->simdata->smx_storage);
+}