4 * Created on: 2 mars 2012
8 #ifndef STORAGE_PRIVATE_H_
9 #define STORAGE_PRIVATE_H_
11 typedef struct s_storage_type {
13 xbt_dict_t content; /* char * -> s_surf_stat_t */
15 xbt_dict_t properties;
17 unsigned long used_size;
18 } s_storage_type_t, *storage_type_t;
20 typedef struct s_mount {
23 } s_mount_t, *mount_t;
25 typedef struct surf_stat { /* file status structure */
27 /* possible additionnal fields (e.g., popularity, last access time to know whether the file is in cache, ...) */
30 typedef struct surf_file {
36 typedef struct storage {
37 s_surf_resource_t generic_resource; /*< Structure with generic data. Needed at begin to interate with SURF */
38 e_surf_resource_state_t state_current; /*< STORAGE current state (ON or OFF) */
39 lmm_constraint_t constraint; /* Constraint for maximum bandwidth from connexion */
40 lmm_constraint_t constraint_write; /* Constraint for maximum write bandwidth*/
41 lmm_constraint_t constraint_read; /* Constraint for maximum write bandwidth*/
42 } s_storage_t, *storage_t;
45 READ, WRITE, STAT, OPEN, CLOSE
46 } e_surf_action_storage_type_t;
48 typedef struct surf_action_storage {
49 s_surf_action_lmm_t generic_lmm_action;
50 e_surf_action_storage_type_t type;
51 } s_surf_action_storage_t, *surf_action_storage_t;
53 #endif /* STORAGE_PRIVATE_H_ */