pool.h File Reference
C wrapper for DMLite Pool API.
More...
#include "any.h"
#include "inode.h"
#include "dmlite.h"
#include "utils.h"
Go to the source code of this file.
Detailed Description
C wrapper for DMLite Pool API.
- Author:
- Alejandro Álvarez Ayllon <aalvarez@cern.ch>
Define Documentation
Function Documentation
Gets a single replica (synchronous).
- Parameters:
-
| context | The DM context. |
| path | The logical file name. |
- Returns:
- A pointer to a dmlite_location struct, or NULL on error.
Gets the location of a replica.
- Parameters:
-
| context | The DM context. |
| replica | The replica to translate. |
- Returns:
- A pointer to a dmlite_location struct, or NULL on error.
Gets the list of pools.
- Parameters:
-
| context | The DM context. |
| nPools | The number of pools. |
| pools | An array with the pools. Use dmlite_freepools to free. |
- Returns:
- 0 on succes, -1 on failure.
Gets a single replica (synchronous).
- Parameters:
-
| context | The DM context. |
| inode | The file inode. |
- Returns:
- A pointer to a dmlite_location struct, or NULL on error.
Frees a location struct.
- Parameters:
-
| context | The DM context. |
| loc | The struct to free. |
- Returns:
- 0 on success, error code otherwise.
Frees an array of pools.
- Parameters:
-
| context | The DM context. |
| nPools | The number of pools in the array. |
| pools | The array to free. |
- Returns:
- 0 on succes, -1 on failure.
Puts a file (synchronous).
- Parameters:
-
| context | The DM context. |
| path | The logical file name to put. |
- Returns:
- A pointer to a dmlite_location struct, or NULL on error.