gfs_pio_sendfile - receive a Gfarm file to local machine
gfarm_error_t gfs_pio_sendfile(GFS_File w_gf, gfarm_off_t w_off, int r_fd, gfarm_off_t r_off, gfarm_off_t len, gfarm_off_t * sentp);
Sends len bytes of data from the position specified by the offset r_off in a local file which is pointed by a file descriptor r_fd, to the position specified by the offset w_off of a Gfarm file w_gf. If len is -1, this function transfers until the end of the file. The transfered bytes will be stored to the memory pointed by sentp when sentp is not NULL. If len is a positive value, and the value pointed by sentp is less than len, that means the transfer reached EOF.
|12 Aug 2015||Gfarm|