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

NAME

6       lfc_setrstatus - set replica status
7

SYNOPSIS

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

DESCRIPTION

15       lfc_setrstatus sets the replica status.  This function should be called
16       for example when a replica becomes available, i.e. fully populated.
17
18       sfn    is the Physical File Name for the replica.
19
20       status specifies the new status.  Valid statuses are:
21
22              -      replica is available.
23
24              P      replica is being populated.
25
26              D      replica is going to be deleted.
27

RETURN VALUE

29       This routine returns 0 if the operation was successful  or  -1  if  the
30       operation failed. In the latter case, serrno is set appropriately.
31

ERRORS

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

SEE ALSO

53       Castor_limits(4), lfc_listreplica(3)
54
55
56
57LFC                      $Date: 2005/04/27 09:11:24 $        LFC_SETRSTATUS(3)
Impressum