gfarm_url_fragments_replicate3
Create a file replica of a file
Usage
#include <gfarm/gfarm.h>
char *gfarm_url_fragments_replicate (const char *gfarm_url, int ndsthosts, char **dsthosts);
Overview
gfarm_url_fragments_replicate() creates a file replica of a file gfarm_url to destination hosts specified by a string array dsthosts with a length ndsthosts. It cannot replicate an executable file.
When the total number of file fragments is greater than the specified total number of hosts ndsthosts, destination hosts are allocated in round robin.
Return values
NULL
|
The function terminated successfully. |
|---|---|
|
Insufficient memory was available. |
|
The file is not a regular fragmented file. |
|
An error except the above occurred. The reason is shown by its pointed strings. |
Releases
Unchanged in 2 releases since Debian 6.0 (Squeeze).