1LFC_LISTREP4GC(3)            LFC Library Functions           LFC_LISTREP4GC(3)
2
3
4

NAME

6       lfc_listrep4gc - list replica entries that can be garbage collected
7

SYNOPSIS

9       #include <sys/types.h>
10       #include "lfc_api.h"
11
12       struct  lfc_filereplicax  *lfc_listrep4gc  (const  char  *poolname, int
13       flags, lfc_list *listp)
14

DESCRIPTION

16       lfc_listrep4gc lists replica entries that can be garbage collected.
17
18       poolname
19              specifies the disk pool.
20
21       flags  may be one of the following constant:
22
23              CNS_LIST_BEGIN
24                     the first call must have this flag set to  allocate  buf‐
25                     fers and initialize pointers.
26
27              CNS_LIST_CONTINUE
28                     all the following calls must have this flag set.
29
30              CNS_LIST_END
31                     final call to terminate the list and free resources.
32

RETURN VALUE

34       This  routine  returns  a pointer to a structure containing the current
35       replica entry if the operation was successful or NULL  if  all  entries
36       have been returned or if the operation failed. In the latter case, ser‐
37       rno is set appropriately.
38

ERRORS

40       ENOMEM       Memory could not be allocated for the output buffer.
41
42       EFAULT       poolname or listp is a NULL pointer.
43
44       EINVAL       The length of poolname exceeds CA_MAXPOOLNAMELEN.
45
46       SENOSHOST    Host unknown.
47
48       SENOSSERV    Service unknown.
49
50       SECOMERR     Communication error.
51
52       ENSNACT      Name server is not running or is being shutdown.
53

SEE ALSO

55       Castor_limits(4), lfc_addreplicax(3)
56
57
58
59LFC                      $Date: 2006/12/01 09:19:37 $        LFC_LISTREP4GC(3)
Impressum