Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Fix compilation error with gcc4.4
[simgrid.git] / src / surf / storage_private.h
1 /*
2  * storage_private.h
3  *
4  *  Created on: 2 mars 2012
5  *      Author: navarro
6  */
7
8 #ifndef STORAGE_PRIVATE_H_
9 #define STORAGE_PRIVATE_H_
10
11 typedef struct s_storage_type {
12   char *model;
13   xbt_dict_t content; /* char * -> s_surf_stat_t */
14   char *type_id;
15   xbt_dict_t properties;
16 } s_storage_type_t, *storage_type_t;
17
18 typedef struct s_mount {
19   void *id;
20   char *name;
21 } s_mount_t, *mount_t;
22
23 typedef struct surf_stat { /* file status structure */
24   s_file_stat_t stat;
25   /* possible additionnal fields (e.g., popularity, last access time to know whether the file is in cache, ...) */
26 } s_surf_stat_t;
27
28 typedef struct surf_file {
29   char *name;
30   surf_stat_t content;
31 } s_surf_file_t;
32
33 typedef struct storage {
34   s_surf_resource_t generic_resource;   /*< Structure with generic data. Needed at begin to interate with SURF */
35   e_surf_resource_state_t state_current;        /*< STORAGE current state (ON or OFF) */
36   lmm_constraint_t constraint;          /* Constraint for maximum bandwidth from connexion */
37   lmm_constraint_t constraint_write;    /* Constraint for maximum write bandwidth*/
38   lmm_constraint_t constraint_read;    /* Constraint for maximum write bandwidth*/
39 } s_storage_t, *storage_t;
40
41 typedef enum {
42   READ, WRITE, STAT, OPEN, CLOSE
43 } e_surf_action_storage_type_t;
44
45 typedef struct surf_action_storage {
46   s_surf_action_lmm_t generic_lmm_action;
47   e_surf_action_storage_type_t type;
48 } s_surf_action_storage_t, *surf_action_storage_t;
49
50 #endif /* STORAGE_PRIVATE_H_ */