1DPNS_LISTREP4GC(3) DPNS Library Functions DPNS_LISTREP4GC(3)
2
3
4
6 dpns_listrep4gc - list replica entries that can be garbage collected
7
9 #include <sys/types.h>
10 #include "dpns_api.h"
11
12 struct dpns_filereplicax *dpns_listrep4gc (const char *poolname, int
13 flags, dpns_list *listp)
14
16 dpns_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
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
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
55 Castor_limits(4), dpns_addreplicax(3)
56
57
58
59DPNS $Date: 2006/12/01 09:19:37 $ DPNS_LISTREP4GC(3)