File: Cns_modreplica.man

package info (click to toggle)
lfc-postgres 1.7.4.7-1
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 13,676 kB
  • ctags: 10,779
  • sloc: ansic: 146,136; sh: 13,176; perl: 11,142; python: 5,529; cpp: 5,113; sql: 1,790; makefile: 861; fortran: 113
file content (112 lines) | stat: -rw-r--r-- 2,393 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
.\" @(#)$RCSfile: Cns_modreplica.man,v $ $Revision: 1.3 $ $Date: 2008/08/27 12:43:28 $ CERN IT-GD/ITR Jean-Philippe Baud
.\" Copyright (C) 2006 by CERN/IT/GD/ITR
.\" All rights reserved
.\"
.TH CNS_MODREPLICA 3 "$Date: 2008/08/27 12:43:28 $" CASTOR "Cns Library Functions"
.SH NAME
Cns_modreplica \- modify information about a given replica
.SH SYNOPSIS
.B #include <sys/types.h>
.br
\fB#include "Cns_api.h"\fR
.sp
.BI "int Cns_modreplica (const char *" sfn ,
.BI "const char *" setname ,
.BI "const char *" poolname ,
.BI "const char *" server )
.sp
.BI "int Cns_modreplicax (const char *" sfn ,
.BI "const char *" setname ,
.BI "const char *" poolname ,
.BI "const char *" server ,
.BI "const char *" fs ,
.BI "const char " r_type )
.SH DESCRIPTION
.B Cns_modreplica
modifies information about a given replica.
.TP
.I sfn
is either the Site URL or the Physical File Name for the replica.
.TP
.I setname
is either a replica set name or a space token.
.TP
.I server
is either the Storage Element fully qualified hostname or the disk server.
.TP
.I poolname
specifies the disk pool name (this argument is only meaningful for the Disk Pool
Manager).
.TP
.B Cns_modreplicax
is similar to
.B Cns_modreplica
but has the additional arguments:
.TP
.I fs
specifies the mount point of the dedicated filesystem (this
argument is only meaningful for the Disk Pool Manager).
.TP
.I r_type
may be one of the following:
.RS
.TP
.B P
Primary  
.TP
.B S
Secondary.
.RE
.SH RETURN VALUE
These routines return 0 if the operation was successful or -1 if the operation
failed. In the latter case,
.B serrno
is set appropriately.
.SH ERRORS
.TP 1.3i
.B ENOENT
The named replica does not exist.
.TP
.B EACCES
Search permission is denied on a component of the parent directory or
the effective user ID does not match the owner of the file or
read permission on the file entry itself is denied.
.TP
.B EFAULT
.I sfn
is a NULL pointer.
.TP
.B EINVAL
The length of
.I setname
exceeds 36,
the length of
.I poolname
exceeds
.B CA_MAXPOOLNAMELEN
or the length of
.I server
exceeds
.BR CA_MAXHOSTNAMELEN .
.TP
.B ENAMETOOLONG
The length of
.I sfn
exceeds
.BR CA_MAXSFNLEN .
.TP
.B SENOSHOST
Host unknown.
.TP
.B SENOSSERV
Service unknown.
.TP
.B SECOMERR
Communication error.
.TP
.B ENSNACT
Name server is not running or is being shutdown.
.SH SEE ALSO
.BR Castor_limits(4) ,
.BR Cns_addreplica(3) ,
.BR Cns_listreplica(3)