lfc_setfsizeg man page

LFC_SETFSIZEG(3) LFC Library Functions LFC_SETFSIZEG(3)

[1mNAME[0m
lfc_setfsizeg - set filesize for a regular file having the given GUID;
set also last modification time to the current time

[1mSYNOPSIS[0m
[1m#include <sys/types.h>[0m
[1m#include "lfc_api.h"[0m

[1mint lfc_setfsizeg (const char *[4m[22mguid[24m[1m, u_signed64 [4m[22mfilesize[24m[1m, const char[0m
[1m*[4m[22mcsumtype[24m[1m, char *[4m[22mcsumvalue[24m[1m)[0m

[1mDESCRIPTION[0m
[1mlfc_setfsizeg [22msets the filesize for a regular file having the given
GUID; set also the last modification time to the current time. This
function should only be called by the stager after the last write oper-
ation has been performed on the file. The file is identified by its
[4mguid[24m.

[4mguid[24m specifies the Grid Unique IDentifier.

[4mcsumtype[0m
specifies the type of checksum. Valid types are:

[1mCS [22mstandard 32 bits checksum

[1mAD [22mAdler 32 bits checksum

[1mMD [22mMD5 128 bits checksum

[1mRETURN VALUE[0m
This routine returns 0 if the operation was successful or -1 if the
operation failed. In the latter case, [1mserrno [22mis set appropriately.

[1mERRORS[0m
[1mEFAULT [4m[22mguid[24m is a NULL pointer.

[1mEINVAL [22mThe length of the [4mguid[24m exceeds [1mCA_MAXGUIDLEN [22mor the length
of the [4mcsumtype[24m exceeds 2 or [4mcsumtype[24m is an unknown type
or the length of the [4mcsumvalue[24m exceeds 32.

[1mSENOSHOST [22mHost unknown.

[1mSENOSSERV [22mService unknown.

[1mSECOMERR [22mCommunication error.

[1mENSNACT [22mName server is not running or is being shutdown.

[1mSEE ALSO[0m
[1mCastor_limits(4)[22m, [1mlfc_statg(3)[0m

LFC $Date: 2008/09/19 11:32:26 $ LFC_SETFSIZEG(3)

Info