~ubuntu-branches/ubuntu/raring/simgrid/raring

« back to all changes in this revision

Viewing changes to src/surf/storage_private.h

  • Committer: Package Import Robot
  • Author(s): Martin Quinson
  • Date: 2013-01-31 00:24:51 UTC
  • mfrom: (10.1.6 sid)
  • Revision ID: package-import@ubuntu.com-20130131002451-krejhf7w7h24lpsc
Tags: 3.9~rc1-1
* New upstream release: the "Grasgory" release. Major changes:
  - Gras was completely removed from this version.
  - Documentation reorganization to ease browsing it.
  - New default value for the TCP_gamma parameter: 4MiB

Show diffs side-by-side

added added

removed removed

Lines of Context:
10
10
 
11
11
typedef struct s_storage_type {
12
12
  char *model;
13
 
  xbt_dict_t content; /* char * -> s_surf_stat_t */
 
13
  char *content;
14
14
  char *type_id;
15
15
  xbt_dict_t properties;
 
16
  unsigned long size;
16
17
} s_storage_type_t, *storage_type_t;
17
18
 
18
19
typedef struct s_mount {
28
29
typedef struct surf_file {
29
30
  char *name;
30
31
  surf_stat_t content;
 
32
  const char* storage;
31
33
} s_surf_file_t;
32
34
 
33
35
typedef struct storage {
35
37
  e_surf_resource_state_t state_current;        /*< STORAGE current state (ON or OFF) */
36
38
  lmm_constraint_t constraint;          /* Constraint for maximum bandwidth from connexion */
37
39
  lmm_constraint_t constraint_write;    /* Constraint for maximum write bandwidth*/
38
 
  lmm_constraint_t constraint_read;    /* Constraint for maximum write bandwidth*/
 
40
  lmm_constraint_t constraint_read;     /* Constraint for maximum write bandwidth*/
 
41
  xbt_dict_t content; /* char * -> s_surf_stat_t */
 
42
  unsigned long size;
 
43
  unsigned long used_size;
 
44
  xbt_dynar_t write_actions;
39
45
} s_storage_t, *storage_t;
40
46
 
41
47
typedef enum {
42
 
  READ, WRITE, STAT, OPEN, CLOSE
 
48
  READ=0, WRITE, STAT, OPEN, CLOSE, UNLINK, LS
43
49
} e_surf_action_storage_type_t;
44
50
 
45
51
typedef struct surf_action_storage {
46
52
  s_surf_action_lmm_t generic_lmm_action;
47
53
  e_surf_action_storage_type_t type;
 
54
  void *storage;
48
55
} s_surf_action_storage_t, *surf_action_storage_t;
49
56
 
50
57
#endif /* STORAGE_PRIVATE_H_ */