LFC_GETREPLICAS(3) | LFC Library Functions | LFC_GETREPLICAS(3) |
lfc_getreplicas - get the replica entries associated with a list of GUIDs
#include <sys/types.h>
#include "lfc_api.h"
int lfc_getreplicas (int nbguids, const char **guids, const char *se, int *nbentries, struct lfc_filereplicas **rep_entries)
lfc_getreplicas gets the replica entries associated with a list of GUIDs.
struct lfc_filereplicas { char guid[CA_MAXGUIDLEN+1]; int errcode; u_signed64 filesize; time_t ctime; /* GUID creation time */ char csumtype[3]; char csumvalue[33]; time_t r_ctime; /* replica creation time */ time_t r_atime; /* last access to replica */ char status; char host[CA_MAXHOSTNAMELEN+1]; char sfn[CA_MAXSFNLEN+1]; };
This routine returns 0 if the operation was successful or -1 if the operation failed. In the latter case, serrno is set appropriately.
LCG Grid Deployment Team
$Date: 2010-09-13 07:52:37 +0200 (Mon, 13 Sep 2010) $ | LFC |