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