13 #define POOL_TYPE_MAX 16
15 #define CHUNK_ID_MAX 16
16 #define CHUNK_URL_ALT_MAX 512
int dmlite_pools_free(unsigned nPools, dmlite_pool *pools)
Frees an array of pools.
Chunk of data.
Definition: pool.h:31
int dmlite_put_abort(dmlite_context *context, const dmlite_location *loc)
Aborts a put request.
dmlite_location * dmlite_iget(dmlite_context *context, ino_t inode)
Gets a single replica (synchronous).
struct dmlite_location dmlite_location
Collection of chunks that form a replica.
dmlite_location * dmlite_chooseserver(dmlite_context *context, const char *path)
Choose a server where to perform generic actions (e.g. a tunnel)
struct dmlite_any_dict dmlite_any_dict
Handles key->value pairs.
Definition: any.h:25
int dmlite_location_free(dmlite_location *loc)
Frees a location struct.
int totstripecount
Definition: pool.h:79
int dmlite_copypull(dmlite_context *context, const char *path, const char *source, int cksumcheck, char *cksumtype, dmlite_xferinfo *progressdata)
Copy a file from a remote location (synchronous). Allows copying to this head node, may add a replica to an existing logical file entry.
struct dmlite_xferinfo dmlite_xferinfo
Progress markers for file copies. FTS jargon calls these "FTS performance markers".
off_t offset
Definition: pool.h:32
size_t size
Definition: pool.h:33
C wrapper for DMLite utils.
#define CHUNK_URL_ALT_MAX
Definition: pool.h:16
dmlite_location * dmlite_put(dmlite_context *context, const char *path)
Puts a file (synchronous).
struct dmlite_chunk dmlite_chunk
Chunk of data.
unsigned nchunks
Definition: pool.h:44
char pool_name[POOL_MAX]
Definition: pool.h:25
Opaque handler to pass different types of values to the API.
struct dmlite_context dmlite_context
Handle for a initialized context.
Definition: dmlite.h:23
struct dmlite_pool dmlite_pool
Pool data.
dmlite_location * dmlite_getlocation(dmlite_context *context, const dmlite_replica *replica)
Gets the location of a replica.
Progress markers for file copies. FTS jargon calls these "FTS performance markers".
Definition: pool.h:73
dmlite_url url
Definition: pool.h:36
char url_alt[CHUNK_URL_ALT_MAX]
Definition: pool.h:34
int dmlite_getdirspaces(dmlite_context *context, const char *logicaldir, int64_t *freespace, int64_t *used)
Get the estimation of the free/used space for writing into a directory.
int64_t stripexferred
Definition: pool.h:78
#define CHUNK_ID_MAX
Definition: pool.h:15
#define POOL_TYPE_MAX
Definition: pool.h:13
Handles URL.
Definition: utils.h:39
dmlite_location * dmlite_get(dmlite_context *context, const char *path)
Gets a single replica (synchronous).
dmlite_chunk * chunks
Definition: pool.h:43
#define POOL_MAX
Definition: pool.h:14
int dmlite_copypush(dmlite_context *context, const char *path, const char *dest, int cksumcheck, char *cksumtype, dmlite_xferinfo *progressdata)
Copy a file to a remote location (synchronous).
char pool_type[POOL_TYPE_MAX]
Definition: pool.h:24
C wrapper for DMLite INode API.
int stripeindex
Definition: pool.h:77
Pool data.
Definition: pool.h:23
dmlite_any_dict * extra
Definition: pool.h:27
time_t timestamp
Definition: pool.h:76
char chunkid[CHUNK_ID_MAX]
Definition: pool.h:35
Collection of chunks that form a replica.
Definition: pool.h:42
int dmlite_getpools(dmlite_context *context, unsigned *nPools, dmlite_pool **pools)
Gets the list of pools.