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

NAME

6       lfc_setfsizeg  - set filesize for a regular file having the given GUID;
7       set also last modification time to the current time
8

SYNOPSIS

10       #include <sys/types.h>
11       #include "lfc_api.h"
12
13       int lfc_setfsizeg (const char *guid, u_signed64  filesize,  const  char
14       *csumtype, char *csumvalue)
15

DESCRIPTION

17       lfc_setfsizeg  sets  the  filesize  for a regular file having the given
18       GUID; set also the last modification time to the  current  time.   This
19       function should only be called by the stager after the last write oper‐
20       ation has been performed on the file.  The file is  identified  by  its
21       guid.
22
23       guid   specifies the Grid Unique IDentifier.
24
25       csumtype
26              specifies the type of checksum. Valid types are:
27
28              CS     standard 32 bits checksum
29
30              AD     Adler 32 bits checksum
31
32              MD     MD5 128 bits checksum
33

RETURN VALUE

35       This  routine  returns  0  if the operation was successful or -1 if the
36       operation failed. In the latter case, serrno is set appropriately.
37

ERRORS

39       EFAULT       guid is a NULL pointer.
40
41       EINVAL       The length of the guid exceeds CA_MAXGUIDLEN or the length
42                    of  the  csumtype exceeds 2 or csumtype is an unknown type
43                    or the length of the csumvalue exceeds 32.
44
45       SENOSHOST    Host unknown.
46
47       SENOSSERV    Service unknown.
48
49       SECOMERR     Communication error.
50
51       ENSNACT      Name server is not running or is being shutdown.
52

SEE ALSO

54       Castor_limits(4), lfc_statg(3)
55
56
57
58LFC                      $Date: 2008/09/19 11:32:26 $         LFC_SETFSIZEG(3)
Impressum