Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
unimplemented MSG_file_dump function
[simgrid.git] / src / msg / msg_io.c
index e6cade0..c2da672 100644 (file)
@@ -19,6 +19,22 @@ XBT_LOG_NEW_DEFAULT_SUBCATEGORY(msg_io, msg,
 
 /********************************* File **************************************/
 
+/** \ingroup msg_file_management
+ * \brief Display information related to a file descriptor
+ *
+ * \param fd is a the file descriptor
+ */
+
+void MSG_file_dump (msg_file_t fd){
+   THROW_UNIMPLEMENTED;
+  /* Update the cached information first */
+//  fd->info = __MSG_file_get_info(fd);
+//  XBT_INFO("File Descriptor information:\n\t\tFull name: '%s'"
+//      "\n\t\tSize: %zu\n\t\tMount point: '%s'\n\t\t Storage Id: '%s'"
+//      "\n\t\t Content Type: '%s'", fd->fullname, fd->info->size, NULL,NULL,NULL);
+//      fd->info->mount_point, fd->info->storageId, fd->info->content_type);
+}
+
 /** \ingroup msg_file_management
  * \brief Read a file
  *
@@ -120,3 +136,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);
+}