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

NAME

6       lfc_delreplica - delete a replica for a given file
7

SYNOPSIS

9       #include <sys/types.h>
10       #include "lfc_api.h"
11
12       int lfc_delreplica (const char *guid, struct lfc_fileid *file_uniqueid,
13       const char *sfn)
14

DESCRIPTION

16       lfc_delreplica deletes a given replica. An extra check may be  obtained
17       by  specifying guid or file_uniqueid.  If both are given, file_uniqueid
18       is used.
19
20       guid   specifies the Grid Unique IDentifier.
21
22       sfn    is either the Site  URL  or  the  Physical  File  Name  for  the
23              replica.
24

RETURN VALUE

26       This  routine  returns  0  if the operation was successful or -1 if the
27       operation failed. In the latter case, serrno is set appropriately.
28

ERRORS

30       ENOENT       The named file or replica does not exist.
31
32       EACCES       Search permission is denied on a component of  the  parent
33                    directory  or  the  effective  user  ID does not match the
34                    owner of the file or write permission on  the  file  entry
35                    itself is denied.
36
37       EFAULT       sfn is a NULL pointer.
38
39       EINVAL       The length of guid exceeds CA_MAXGUIDLEN.
40
41       ENAMETOOLONG The length of sfn exceeds CA_MAXSFNLEN.
42
43       SENOSHOST    Host unknown.
44
45       SENOSSERV    Service unknown.
46
47       SECOMERR     Communication error.
48
49       ENSNACT      Name server is not running or is being shutdown.
50

SEE ALSO

52       Castor_limits(4), lfc_addreplica(3), lfc_listreplica(3)
53
54
55
56LFC                      $Date: 2005/07/26 12:09:11 $        LFC_DELREPLICA(3)
Impressum