gfarm_url_fragments_replicate(3)

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.

GFARM_ERR_NO_MEMORY

Insufficient memory was available.

GFARM_ERR_OPERATION_NOT_PERMITTED

The file is not a regular fragmented file.

Others

An error except the above occurred. The reason is shown by its pointed strings.

Releases

Unchanged in 2 releases since Debian 6.0 (Squeeze).

  1. 6.0–7

From libgfarm-dev 2.4.1-1.1 in Debian 7 (Wheezy). Parsed by carta from the page's man source.