1LFC_SETFSIZEG(3)                  LFC      Library      Functions
2LFC_SETFSIZEG(3)
3
4
5
6[1mNAME[0m
7       lfc_setfsizeg  ‐ set filesize for a  regular  file  having
8the given GUID;
9       set also last modification time to the current time
10
11[1mSYNOPSIS[0m
12       [1m#include <sys/types.h>[0m
13       [1m#include "lfc_api.h"[0m
14
15       [1mint   lfc_setfsizeg  (const  char  *[4m[22mguid[24m[1m,
16u_signed64  [4m[22mfilesize[24m[1m,  const  char[0m
17       [1m*[4m[22mcsumtype[24m[1m,     char      *[4m[22mcsumval‐
18ue[24m[1m)[0m
19
20[1mDESCRIPTION[0m
21       [1mlfc_setfsizeg   [22msets   the  filesize  for a regular
22file having the given
23       GUID; set also the last modification time to the   current
24time.   This
25       function  should  only  be  called by the stager after the
26last write oper‐
27       ation has been performed on the file.  The file is   iden‐
28tified  by  its
29       [4mguid[24m.
30
31       [4mguid[24m   specifies the Grid Unique IDentifier.
32
33       [4mcsumtype[0m
34              specifies the type of checksum. Valid types are:
35
36              [1mCS     [22mstandard 32 bits checksum
37
38              [1mAD     [22mAdler 32 bits checksum
39
40              [1mMD     [22mMD5 128 bits checksum
41
42[1mRETURN VALUE[0m
43       This  routine  returns  0  if the operation was successful
44or ‐1 if the
45       operation failed. In the latter case, [1mserrno [22mis set
46appropriately.
47
48[1mERRORS[0m
49       [1mEFAULT       [4m[22mguid[24m is a NULL pointer.
50
51       [1mEINVAL        [22mThe length of the [4mguid[24m exceeds
52[1mCA_MAXGUIDLEN [22mor the length
53                    of  the  [4mcsumtype[24m exceeds 2  or  [4mc‐
54sumtype[24m is an unknown type
55                    or the length of the [4mcsumvalue[24m exceeds
5632.
57
58       [1mSENOSHOST    [22mHost unknown.
59
60       [1mSENOSSERV    [22mService unknown.
61
62       [1mSECOMERR     [22mCommunication error.
63
64       [1mENSNACT      [22mName server is not running or is being
65shutdown.
66
67[1mSEE ALSO[0m
68       [1mCastor_limits(4)[22m, [1mlfc_statg(3)[0m
69
70
71
72LFC                         $Date:    2008/09/19    11:32:26    $
73LFC_SETFSIZEG(3)
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
Impressum