1DPM_DELREPLICA(3)            DPM Library Functions           DPM_DELREPLICA(3)
2
3
4

NAME

6       dpm_delreplica - delete a given replica
7

SYNOPSIS

9       #include <sys/types.h>
10       #include "dpm_api.h"
11
12       int dpm_delreplica (char *pfn)
13

DESCRIPTION

15       dpm_delreplica deletes a given replica.  It removes the file from disk,
16       updates the pool free space and removes  the  replica  entry  from  the
17       DPNS.
18
19       pfn    is the Physical File Name for the replica.
20

RETURN VALUE

22       This  routine  returns  0  if the operation was successful or -1 if the
23       operation failed. In the latter case, serrno is set appropriately.
24

ERRORS

26       ENOENT       The named file or replica does not exist.
27
28       EACCES       Search permission is denied on a component of  the  parent
29                    directory  or  the  effective  user  ID does not match the
30                    owner of the file or write permission on  the  file  entry
31                    itself is denied.
32
33       EFAULT       pfn is a NULL pointer.
34
35       ENAMETOOLONG The length of pfn exceeds CA_MAXSFNLEN.
36
37       SENOSHOST    Host unknown.
38
39       SENOSSERV    Service unknown.
40
41       SECOMERR     Communication error.
42

SEE ALSO

44       Castor_limits(4), dpns_addreplica(3), dpns_listreplica(3)
45
46
47
48LCG                      $Date: 2006/04/08 14:51:17 $        DPM_DELREPLICA(3)
Impressum