1DPM_DELREPLICA(3)                 DPM      Library      Functions
2DPM_DELREPLICA(3)
3
4
5
6[1mNAME[0m
7       dpm_delreplica ‐ delete a given replica
8
9[1mSYNOPSIS[0m
10       [1m#include <sys/types.h>[0m
11       [1m#include "dpm_api.h"[0m
12
13       [1mint dpm_delreplica (char *[4m[22mpfn[24m[1m)[0m
14
15[1mDESCRIPTION[0m
16       [1mdpm_delreplica [22mdeletes a given replica.  It removes
17the file from disk,
18       updates the pool free space and removes  the  replica  en‐
19try  from  the
20       DPNS.
21
22       [4mpfn[24m    is the Physical File Name for the replica.
23
24[1mRETURN VALUE[0m
25       This  routine  returns  0  if the operation was successful
26or ‐1 if the
27       operation failed. In the latter case, [1mserrno [22mis set
28appropriately.
29
30[1mERRORS[0m
31       [1mENOENT       [22mThe named file or replica does not ex‐
32ist.
33
34       [1mEACCES        [22mSearch permission is denied on a com‐
35ponent of  the  parent
36                    directory  or  the  effective  user  ID  does
37not match the
38                    owner of the file or write permission on  the
39file  entry
40                    itself is denied.
41
42       [1mEFAULT       [4m[22mpfn[24m is a NULL pointer.
43
44       [1mENAMETOOLONG  [22mThe  length  of  [4mpfn[24m   exceeds
45[1mCA_MAXSFNLEN[22m.
46
47       [1mSENOSHOST    [22mHost unknown.
48
49       [1mSENOSSERV    [22mService unknown.
50
51       [1mSECOMERR     [22mCommunication error.
52
53[1mSEE ALSO[0m
54       [1mCastor_limits(4)[22m, [1mdpns_addreplica(3)[22m, [1mdp‐
55ns_listreplica(3)[0m
56
57
58
59LCG                         $Date:    2006/04/08    14:51:17    $
60DPM_DELREPLICA(3)
61
62
63
64
65
66
Impressum