1DPNS_SETRSTATUS(3) DPNS Library Functions DPNS_SETRSTATUS(3)
2
3
4
6 dpns_setrstatus - set replica status
7
9 #include <sys/types.h>
10 #include "dpns_api.h"
11
12 int dpns_setrstatus (const char *sfn, const char status)
13
15 dpns_setrstatus sets the replica status. This function should be
16 called for example when a replica becomes available, i.e. fully popu‐
17 lated.
18
19 sfn is the Physical File Name for the replica.
20
21 status specifies the new status. Valid statuses are:
22
23 - replica is available.
24
25 P replica is being populated.
26
27 D replica is going to be deleted.
28
30 This routine returns 0 if the operation was successful or -1 if the
31 operation failed. In the latter case, serrno is set appropriately.
32
34 ENOENT The named replica does not exist.
35
36 EACCES Search permission is denied on a component of the file
37 prefix or the caller effective user ID does not match the
38 owner ID of the file or read permission on the file itself
39 is denied.
40
41 EFAULT sfn is a NULL pointer.
42
43 ENAMETOOLONG The length of sfn exceeds CA_MAXSFNLEN.
44
45 SENOSHOST Host unknown.
46
47 SENOSSERV Service unknown.
48
49 SECOMERR Communication error.
50
51 ENSNACT Name server is not running or is being shutdown.
52
54 Castor_limits(4), dpns_listreplica(3)
55
56
57
58DPNS $Date: 2005/04/27 09:11:24 $ DPNS_SETRSTATUS(3)