1DPNS_DELREPLICA(3) DPNS Library Functions DPNS_DELREPLICA(3)
2
3
4
6 dpns_delreplica - delete a replica for a given file
7
9 #include <sys/types.h>
10 #include "dpns_api.h"
11
12 int dpns_delreplica (const char *guid, struct dpns_fileid
13 *file_uniqueid, const char *sfn)
14
16 dpns_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
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
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
52 Castor_limits(4), dpns_addreplica(3), dpns_listreplica(3)
53
54
55
56DPNS $Date: 2005/07/26 12:09:11 $ DPNS_DELREPLICA(3)