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

NAME

6       lfc_setrtype - set replica type
7

SYNOPSIS

9       #include <sys/types.h>
10       #include "lfc_api.h"
11
12       int lfc_setrtype (const char *sfn, const char type)
13

DESCRIPTION

15       lfc_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

RETURN VALUE

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

ERRORS

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

SEE ALSO

52       Castor_limits(4), lfc_listreplica(3)
53
54
55
56LFC                      $Date: 2006/07/14 14:10:08 $          LFC_SETRTYPE(3)
Impressum