1DPM_ABORTFILES(3) DPM Library Functions DPM_ABORTFILES(3)
2
3
4
6 dpm_abortfiles - abort a set of file requests
7
9 #include <sys/types.h>
10 #include "dpm_api.h"
11
12 int dpm_abortfiles (char *r_token, int nbsurls, char **surls, int
13 *nbreplies, struct dpm_filestatus **filestatuses)
14
16 dpm_abortfiles aborts a set of file requests. File requests in status
17 DPM_QUEUED are removed from the queue of pending requests, the ones in
18 status DPM_READY or DPM_DONE are released (unpinned).
19
20 The input arguments are:
21
22 r_token
23 specifies the token returned by a previous get/put/copy request.
24
25 nbsurls
26 specifies the number of files to be aborted.
27
28 surls specifies the array of file names.
29
30 The output arguments are:
31
32 nbreplies
33 will be set to the number of replies in the array of file sta‐
34 tuses.
35
36 filestatuses
37 will be set to the address of an array of dpm_filestatus struc‐
38 tures allocated by the API. The client application is responsi‐
39 ble for freeing the array when not needed anymore.
40
41 struct dpm_filestatus {
42 char *surl;
43 int status;
44 char *errstring;
45 };
46
48 This routine returns 0 if the operation was successful or -1 if the
49 operation failed. In the latter case, serrno is set appropriately.
50
52 ENOENT File does not exist.
53
54 EACCES Permission denied.
55
56 EFAULT r_token, surls, nbreplies or filestatuses is a NULL
57 pointer.
58
59 ENOMEM Memory could not be allocated for marshalling the request.
60
61 EINVAL nbsurls is not strictly positive, the token is not known
62 or all file requests have errors.
63
64 ENAMETOOLONG The length of the surl exceeds CA_MAXSFNLEN.
65
66 SENOSHOST Host unknown.
67
68 SEINTERNAL Database error.
69
70 SECOMERR Communication error.
71
72
73
74LCG $Date: 2006/08/01 07:37:06 $ DPM_ABORTFILES(3)