1LFC_GETREPLICASL(3)          LFC Library Functions         LFC_GETREPLICASL(3)
2
3
4

NAME

6       lfc_getreplicasl  -  get  the replica entries associated with a list of
7       path names
8

SYNOPSIS

10       #include <sys/types.h>
11       #include "lfc_api.h"
12
13       int lfc_getreplicasl (int nbfiles, const char **paths, const char  *se,
14       int *nbentries, struct lfc_filereplicas **rep_entries)
15

DESCRIPTION

17       lfc_getreplicasl  gets  the  replica  entries associated with a list of
18       path names.
19
20       nbfiles
21              specifies the number of path names in the array paths.
22
23       paths  specifies the list of logical path names relative to the current
24              LFC directory or the list of full LFC path names.
25
26       se     allows to restrict the replica entries to a given SE.
27
28       nbentries
29              will be set to the number of entries in the array of replicas.
30
31       rep_entries
32              will  be  set  to  the  address  of an array of lfc_filereplicas
33              structures allocated by  the  API.  The  client  application  is
34              responsible for freeing the array when not needed anymore.
35
36       struct lfc_filereplicas {
37            char      guid[CA_MAXGUIDLEN+1];
38            int       errcode;
39            u_signed64     filesize;
40            time_t         ctime;         /* GUID creation time */
41            char      csumtype[3];
42            char      csumvalue[33];
43            time_t         r_ctime;  /* replica creation time */
44            time_t         r_atime;  /* last access to replica */
45            char      status;
46            char      host[CA_MAXHOSTNAMELEN+1];
47            char      sfn[CA_MAXSFNLEN+1];
48       };
49

RETURN VALUE

51       This  routine  returns  0  if the operation was successful or -1 if the
52       operation failed. In the latter case, serrno is set appropriately.
53

ERRORS

55       ENOENT       The named file does not exist.
56
57       EACCES       Search permission is denied on a  component  of  the  path
58                    prefix.
59
60       ENOMEM       Memory  could not be allocated for marshalling the request
61                    or unmarshalling the reply.
62
63       EFAULT       paths, nbentries or rep_entries is a NULL pointer.
64
65       EINVAL       nbfiles is not strictly  positive  or  the  length  of  se
66                    exceeds CA_MAXHOSTNAMELEN.
67
68       ENAMETOOLONG The  length of path exceeds CA_MAXPATHLEN or the length of
69                    a path component exceeds CA_MAXNAMELEN.
70
71       SENOSHOST    Host unknown.
72
73       SENOSSERV    Service unknown.
74
75       SEINTERNAL   Database error.
76
77       SECOMERR     Communication error.
78
79       ENSNACT      Name server is not running or is being shutdown.
80

SEE ALSO

82       Castor_limits(4), lfc_chdir(3)
83

AUTHOR

85       LCG Grid Deployment Team
86
87
88
89LFC          $Date: 2010-09-13 07:52:37 +0200 (Mon, 13 Sep 2L0F1C0_)GE$TREPLICASL(3)
Impressum