1DPNS_DELREPLICA(3)           DPNS  Library Functions          DP‐
2NS_DELREPLICA(3)
3
4
5
6[1mNAME[0m
7       dpns_delreplica ‐ delete a replica for a given file
8
9[1mSYNOPSIS[0m
10       [1m#include <sys/types.h>[0m
11       [1m#include "dpns_api.h"[0m
12
13       [1mint         dpns_delreplica         (const         char
14*[4m[22mguid[24m[1m,   struct   dpns_fileid[0m
15       [1m*[4m[22mfile_uniqueid[24m[1m,         const        char
16*[4m[22msfn[24m[1m)[0m
17
18[1mDESCRIPTION[0m
19       [1mdpns_delreplica [22mdeletes a given replica.  An  extra
20check may be obtained
21       by   specifying  [4mguid[24m  or [4mfile_uniqueid[24m.  If
22both are given, [4mfile_uniqueid[0m
23       is used.
24
25       [4mguid[24m   specifies the Grid Unique IDentifier.
26
27       [4msfn[24m    is either the Site  URL  or   the   Physical
28File  Name  for  the
29              replica.
30
31[1mRETURN VALUE[0m
32       This  routine  returns  0  if the operation was successful
33or ‐1 if the
34       operation failed. In the latter case, [1mserrno [22mis set
35appropriately.
36
37[1mERRORS[0m
38       [1mENOENT       [22mThe named file or replica does not ex‐
39ist.
40
41       [1mEACCES       [22mSearch permission is denied on a  com‐
42ponent of  the  parent
43                    directory   or  the  effective  user  ID does
44not match the
45                    owner of the file or write permission on  the
46file  entry
47                    itself is denied.
48
49       [1mEFAULT       [4m[22msfn[24m is a NULL pointer.
50
51       [1mEINVAL        [22mThe  length  of  [4mguid[24m  exceeds
52[1mCA_MAXGUIDLEN[22m.
53
54       [1mENAMETOOLONG  [22mThe  length  of  [4msfn[24m   exceeds
55[1mCA_MAXSFNLEN[22m.
56
57       [1mSENOSHOST    [22mHost unknown.
58
59       [1mSENOSSERV    [22mService unknown.
60
61       [1mSECOMERR     [22mCommunication error.
62
63       [1mENSNACT      [22mName server is not running or is being
64shutdown.
65
66[1mSEE ALSO[0m
67       [1mCastor_limits(4)[22m, [1mdpns_addreplica(3)[22m, [1mdp‐
68ns_listreplica(3)[0m
69
70
71
72DPNS                      $Date:  2005/07/26 12:09:11 $       DP‐
73NS_DELREPLICA(3)
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
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
Impressum