1DPNS_SETRTYPE(3) DPNS Library Functions DPNS_SETRTYPE(3)
2
3
4
6 dpns_setrtype - set replica type
7
9 #include <sys/types.h>
10 #include "dpns_api.h"
11
12 int dpns_setrtype (const char *sfn, const char type)
13
15 dpns_setrtype sets the replica type.
16
17 sfn is the Physical File Name for the replica.
18
19 type specifies the new type. Valid types are:
20
21 V replica is volatile.
22
23 D replica is durable.
24
25 P replica is permanent.
26
28 This routine returns 0 if the operation was successful or -1 if the
29 operation failed. In the latter case, serrno is set appropriately.
30
32 ENOENT The named replica does not exist.
33
34 EACCES Search permission is denied on a component of the file
35 prefix or the caller effective user ID does not match the
36 owner ID of the file or write permission on the file
37 itself is denied.
38
39 EFAULT sfn is a NULL pointer.
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_listreplica(3)
53
54
55
56DPNS $Date: 2006/07/14 14:10:08 $ DPNS_SETRTYPE(3)