Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
13b67f7afb2e02c49c6f62bac510eb53be801058
[simgrid.git] / src / surf / storage_private.h
1 /* Copyright (c) 2009, 2012-2013. The SimGrid Team.
2  * All rights reserved.                                                     */
3
4 /* This program is free software; you can redistribute it and/or modify it
5  * under the terms of the license (GNU LGPL) which comes with this package. */
6
7 #ifndef STORAGE_PRIVATE_H_
8 #define STORAGE_PRIVATE_H_
9
10 typedef struct s_storage_type {
11   char *model;
12   char *content;
13   char *content_type;
14   char *type_id;
15   xbt_dict_t properties;
16   sg_storage_size_t size;
17 } s_storage_type_t, *storage_type_t;
18
19 typedef struct s_mount {
20   void *storage;
21   char *name;
22 } s_mount_t, *mount_t;
23
24 typedef struct surf_file {
25   char *name;
26   char *mount;
27   sg_storage_size_t size;
28 } s_surf_file_t;
29
30 <<<<<<< HEAD
31 typedef struct storage {
32   //FIXME:s_surf_resource_t generic_resource;   /*< Structure with generic data. Needed at begin to interact with SURF */
33 ||||||| merged common ancestors
34 typedef struct storage {
35   s_surf_resource_t generic_resource;   /*< Structure with generic data. Needed at begin to interact with SURF */
36 =======
37 typedef struct surf_storage {
38   s_surf_resource_t generic_resource;   /*< Structure with generic data. Needed at begin to interact with SURF */
39 >>>>>>> 045db1657e870c721be490b411868f4181a12ced
40   e_surf_resource_state_t state_current;        /*< STORAGE current state (ON or OFF) */
41   lmm_constraint_t constraint;          /* Constraint for maximum bandwidth from connection */
42   lmm_constraint_t constraint_write;    /* Constraint for maximum write bandwidth*/
43   lmm_constraint_t constraint_read;     /* Constraint for maximum write bandwidth*/
44   xbt_dict_t content;
45   char* content_type;
46   sg_storage_size_t size;
47   sg_storage_size_t used_size;
48   char *type_id;
49   xbt_dynar_t write_actions;
50   xbt_dict_t properties;
51 } s_storage_t, *storage_t;
52
53 typedef enum {
54   READ=0, WRITE, STAT, OPEN, CLOSE, LS
55 } e_surf_action_storage_type_t;
56
57 typedef struct surf_action_storage {
58   //FIXME:s_surf_action_lmm_t generic_lmm_action;
59   e_surf_action_storage_type_t type;
60   void *storage;
61 } s_surf_action_storage_t, *surf_action_storage_t;
62
63 #endif /* STORAGE_PRIVATE_H_ */