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

NAME

6       lfc_delreplicas  -  delete  replica  entries  associated with a list of
7       GUIDs and a particular se
8

SYNOPSIS

10       #include <sys/types.h>
11       #include "lfc_api.h"
12
13       int lfc_delreplicas (int nbguids, const char  **guids,  char  *se,  int
14       *nbstatuses, int **statuses)
15

DESCRIPTION

17       lfc_delreplicas deletes replica entries associated with a list of GUIDs
18       and a particular se.
19
20       nbguids
21              specifies the number of guids in the array guids.
22
23       guids  specifies the list of Grid Unique IDentifiers.
24
25       se     allows to restrict the replica entries to a given SE.
26
27       nbstatuses
28              will be set to the number of replies in the array of statuses.
29
30       statuses
31              will be set to the address of an array of integer statuses allo‐
32              cated  by  the  API.  The  client application is responsible for
33              freeing the array when not needed anymore.
34

RETURN VALUE

36       This routine returns 0 if the operation was successful  or  -1  if  the
37       operation failed. In the latter case, serrno is set appropriately.
38

ERRORS

40       ENOENT       The named guid does not exist.
41
42       EACCES       Search  permission  is denied on a component of the parent
43                    directory or write permission  is  denied  on  the  parent
44                    directory or the parent has the sticky bit S_ISVTX set and
45
46                      the  effective  user  ID of the requestor does not match
47                      the owner ID of the file and
48
49                      the effective user ID of the requestor  does  not  match
50                      the owner ID of the directory and
51
52                      the file is not writable by the requestor and
53
54                      the  requestor does not have ADMIN privilege in the Cupv
55                      database.
56
57       ENOMEM       Memory could not be allocated for marshalling the  request
58                    or unmarshalling the reply.
59
60       EFAULT       guids, se, nbstatuses or statuses is a NULL pointer.
61
62       EINVAL       nbguids is not strictly positive, the length of one of the
63                    guids exceeds CA_MAXGUIDLEN or the length  of  se  exceeds
64                    CA_MAXHOSTNAMELEN.
65
66       SENOSSERV    Service unknown.
67
68       SEINTERNAL   Database error.
69
70       SECOMERR     Communication error.
71
72       ENSNACT      Name server is not running or is being shutdown.
73

SEE ALSO

75       Castor_limits(4), lfc_delreplica(3)
76

AUTHOR

78       LCG Grid Deployment Team
79
80
81
82LFC                      $Date: 2007/12/13 11:59:47 $       LFC_DELREPLICAS(3)
Impressum