char* mount = xbt_strdup("/home");
size_t read,write;
- if(!strcmp(MSG_process_get_name(MSG_process_self()),"0"))
+ if(!strcmp(MSG_process_get_name(MSG_process_self()),"0")){
file = MSG_file_open(mount,FILENAME1);
+ MSG_file_dump(file);}
else if(!strcmp(MSG_process_get_name(MSG_process_self()),"1"))
file = MSG_file_open(mount,FILENAME2);
else if(!strcmp(MSG_process_get_name(MSG_process_self()),"2"))
XBT_PUBLIC(msg_file_t) MSG_file_open(const char* mount, const char* path);
XBT_PUBLIC(int) MSG_file_close(msg_file_t fd);
XBT_PUBLIC(size_t) MSG_file_get_size(msg_file_t fd);
+XBT_PUBLIC(void) MSG_file_dump(msg_file_t fd);
XBT_PUBLIC(int) MSG_file_unlink(msg_file_t fd);
XBT_PUBLIC(xbt_dict_t) MSG_file_ls(const char *mount, const char *path);
/********************************* 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
*