Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
simplify the simcall stack for file unlink
[simgrid.git] / src / surf / storage_private.h
index bc02af1..534b1d0 100644 (file)
@@ -22,8 +22,8 @@ typedef struct s_mount {
 
 typedef struct surf_file {
   char *name;
-  const char* storage;
-  double size;
+  char *storage;
+  size_t size;
 } s_surf_file_t;
 
 typedef struct storage {
@@ -32,14 +32,14 @@ typedef struct storage {
   lmm_constraint_t constraint;          /* Constraint for maximum bandwidth from connection */
   lmm_constraint_t constraint_write;    /* Constraint for maximum write bandwidth*/
   lmm_constraint_t constraint_read;     /* Constraint for maximum write bandwidth*/
-  xbt_dict_t content; /* char * -> s_surf_stat_t */
+  xbt_dict_t content; /* char * -> s_surf_file_t */
   unsigned long size;
   unsigned long used_size;
   xbt_dynar_t write_actions;
 } s_storage_t, *storage_t;
 
 typedef enum {
-  READ=0, WRITE, STAT, OPEN, CLOSE, UNLINK, LS
+  READ=0, WRITE, STAT, OPEN, CLOSE, LS
 } e_surf_action_storage_type_t;
 
 typedef struct surf_action_storage {