GSI Object Oriented Online Offline (Go4)
GO4-5.3.2
|
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <errno.h>
#include <sys/socket.h>
#include <sys/time.h>
#include "rawapitd.h"
#include "rawapitd-gsin.h"
#include "rawcommn.h"
#include "rawdefn.h"
#include "rawclin.h"
#include "rawentn.h"
#include "rawapplcli.h"
Go to the source code of this file.
Functions | |
int | rawCheckFilelist (char **pcFileList, char **pcObjList, char *pcArchive, char *pcNodeMaster) |
int | rawCheckObjlist (int iFileComp, int iSort, char **pcObjList, char **pcFileList, char **pcObjComp) |
int | rawDelFile (int iSocket, srawComm *psComm) |
int | rawDelList (int iSocketMaster, int iDataMover, srawDataMoverAttr *pDataMover0, srawComm *psComm, char **pcFileList, char **pcObjList) |
int | rawGetFilelistEntries (char *pcFileName, int *piDataFS, char *pcDataFS, int *piEntries, int *piGlobalDir) |
int | rawGetWSInfo (srawCliActionComm *pCliActionComm, srawPoolStatus *pPoolInfo, srawWorkSpace **ppWorkSpace) |
char * | rawGetFullFile (char *pcFile, char *pcNamell) |
void | rawQueryPrint (srawObjAttr *pQAttr, int ipMode) |
int | rawQueryString (srawObjAttr *pQAttr, int ipMode, int iOut, char *pcOut) |
int | rawScanObjbuf (char *pcPath, char *pcFile, int iObjnoAll, int *piObjBuf0) |
int | rawSortValues (int *iaValue, int iAll, int iFirst, int iLast, int *iaIndex, int *iaIndNew) |
Variables | |
FILE * | fLogFile |
int * | piEntryList |
static unsigned int | iint = sizeof(int) |
static unsigned int | iRetrList = sizeof(srawRetrList) |
static unsigned int | iFileList = sizeof(srawFileList) |
static char | cPath [MAX_FULL_FILE] = "" |
int rawCheckFilelist | ( | char ** | pcFileList, |
char ** | pcObjList, | ||
char * | pcArchive, | ||
char * | pcNodeMaster | ||
) |
Definition at line 165 of file rawCliProcn.c.
References bFalse, bTrue, srawFileList::cFile, srawRetrList::cNamehl, srawRetrList::cNamell, fLogFile, MAX_OBJ_LL, and rawGetLLName().
int rawCheckObjlist | ( | int | iFileComp, |
int | iSort, | ||
char ** | pcObjList, | ||
char ** | pcFileList, | ||
char ** | pcObjComp | ||
) |
Definition at line 410 of file rawCliProcn.c.
References bFalse, srawFileList::cFile, srawRetrList::cNamehl, srawRetrList::cNamell, fLogFile, srawRetrList::iCacheFS, iFileList, iint, srawRetrList::iObjHigh, srawRetrList::iObjLow, srawRetrList::iRestoHigh, srawRetrList::iRestoHighHigh, srawRetrList::iRestoHighLow, srawRetrList::iRestoLow, srawRetrList::iRestoLowHigh, iRetrList, srawRetrList::iStageFS, MAX_FILE_NO, rawSortValues(), and STATUS_LEN.
int rawDelFile | ( | int | iSocket, |
srawComm * | psComm | ||
) |
Definition at line 1608 of file rawCliProcn.c.
References srawComm::cNamefs, srawComm::cNamehl, srawComm::cNamell, srawComm::cNodeRC, srawComm::cNodeWC, srawStatus::cStatus, HEAD_LEN, srawComm::iAction, srawComm::iCommLen, srawComm::iFSidWC, srawComm::iObjHigh, srawComm::iObjLow, srawComm::iStageFSid, srawStatus::iStatus, rawRecvStatus(), REMOVE, and STATUS_LEN.
Referenced by rawDelList().
int rawDelList | ( | int | iSocketMaster, |
int | iDataMover, | ||
srawDataMoverAttr * | pDataMover0, | ||
srawComm * | psComm, | ||
char ** | pcFileList, | ||
char ** | pcObjList | ||
) |
Definition at line 1715 of file rawCliProcn.c.
References bFalse, bTrue, srawRetrList::cArchiveDate, srawFileList::cFile, srawRetrList::cMoverCache, srawRetrList::cMoverStage, srawRetrList::cNamehl, srawRetrList::cNamell, srawComm::cNamell, srawDataMoverAttr::cNode, srawComm::cNodeRC, srawComm::cNodeWC, srawRetrList::cOwner, srawComm::iAction, srawRetrList::iATLServer, srawComm::iATLServer, srawRetrList::iCacheFS, if(), srawComm::iFSidWC, srawRetrList::iObjHigh, srawComm::iObjHigh, srawRetrList::iObjLow, srawComm::iObjLow, srawRetrList::iPoolId, srawComm::iPoolIdRC, srawComm::iPoolIdWC, srawDataMoverAttr::iSocket, srawRetrList::iStageFS, srawComm::iStageFSid, rawDelFile(), rawGetLLName(), and REMOVE.
int rawGetFilelistEntries | ( | char * | pcFileName, |
int * | piDataFS, | ||
char * | pcDataFS, | ||
int * | piEntries, | ||
int * | piGlobalDir | ||
) |
Definition at line 1964 of file rawCliProcn.c.
References cDataFSHigh1, cDataFSHigh2, srawFileList::cFile, cPath, cPathPrefix, fLogFile, iPathPrefix, MAX_FULL_FILE, pcPerc, pcQM, pcStar, piEntryList, and STATUS_LEN.
char* rawGetFullFile | ( | char * | pcFile, |
char * | pcNamell | ||
) |
Definition at line 3168 of file rawCliProcn.c.
References cPath, fLogFile, and MAX_FULL_FILE.
int rawGetWSInfo | ( | srawCliActionComm * | pCliActionComm, |
srawPoolStatus * | pPoolInfo, | ||
srawWorkSpace ** | ppWorkSpace | ||
) |
Definition at line 2546 of file rawCliProcn.c.
References srawPoolStatusData::cPoolName, HEAD_LEN, srawCliActionComm::iAction, iATLServer, srawPoolStatusData::iCheckSize, IDENT_POOL, IDENT_STATUS, IDENT_WORKSPACE, srawPoolStatusData::iFileAvail, srawPoolStatusData::iFiles, srawPoolStatusData::iFreeSize, srawPoolStatusData::iFreeSizeHW, srawPoolStatus::iIdent, srawWorkSpace::iIdent, srawPoolStatusData::iMaxSize, srawPoolStatusData::iMaxSizeHW, srawPoolStatusData::iMaxWorkSize, srawPoolStatus::iPoolNo, srawCliActionComm::iSocket, srawCliActionComm::iStatus, srawWorkSpace::iStatus, srawPoolStatus::iStatusLen, srawWorkSpace::iStatusLen, srawWorkSpace::iWorkFilesAll, srawWorkSpace::iWorkFilesEst, srawWorkSpace::iWorkFilesSta, srawWorkSpace::iWorkFilesStaTemp, srawWorkSpace::iWorkId, srawWorkSpace::iWorkSizeAll, srawWorkSpace::iWorkSizeEst, srawWorkSpace::iWorkSizeSta, srawWorkSpace::iWorkSizeStaTemp, MAX_FULL_FILE, srawCliActionComm::pcFile, srawCliActionComm::piBuffer, QUERY_POOL, QUERY_WORKSPACE, rawRecvError(), rawRecvHead(), STA_ERROR, STA_ERROR_EOF, STAGE, and STATUS_LEN.
void rawQueryPrint | ( | srawObjAttr * | pQAttr, |
int | ipMode | ||
) |
Definition at line 3266 of file rawCliProcn.c.
References srawObjAttr::cDateCreate, srawObjAttr::cMgmtClass, srawObjAttr::cNamefs, srawObjAttr::cNamehl, srawObjAttr::cNamell, srawObjAttr::cNode, srawObjAttr::cOS, srawObjAttr::cOwner, cPath, srawObjAttr::cStageUser, cTooBig, FIXED_INTS4, fLogFile, GSI_CACHE_COPY, GSI_CACHE_INCOMPLETE, GSI_CACHE_LOCKED, GSI_MEDIA_CACHE, GSI_MEDIA_INCOMPLETE, GSI_MEDIA_LOCKED, GSI_MEDIA_STAGE, GSI_STAGE_INVALID, iATLServer, srawObjAttr::iATLServer, srawObjAttr::iFileSet, srawObjAttr::iFileSize, srawObjAttr::iFileSize2, srawObjAttr::iFileType, srawObjAttr::iFS, srawObjAttr::iMediaClass, srawObjAttr::iObjHigh, srawObjAttr::iObjLow, srawObjAttr::iPoolId, srawObjAttr::iRestoHigh, srawObjAttr::iRestoHighHigh, srawObjAttr::iRestoHighLow, srawObjAttr::iRestoLow, srawObjAttr::iRestoLowHigh, srawObjAttr::iVersion, MAX_ATLSERVER, MAX_OBJ_HL, MEDIA_FIXED, MEDIA_LIBRARY, MEDIA_NETWORK, MEDIA_OFFSITE, MEDIA_SHELF, MEDIA_UNAVAILABLE, rawGetPathName(), STREAM, and VERSION_SRAWOBJATTR.
int rawQueryString | ( | srawObjAttr * | pQAttr, |
int | ipMode, | ||
int | iOut, | ||
char * | pcOut | ||
) |
Definition at line 3458 of file rawCliProcn.c.
References srawObjAttr::cDateCreate, srawObjAttr::cMgmtClass, srawObjAttr::cNamefs, srawObjAttr::cNamehl, srawObjAttr::cNamell, srawObjAttr::cNode, srawObjAttr::cOS, srawObjAttr::cOwner, cPath, srawObjAttr::cStageUser, cTooBig, FIXED_INTS4, fLogFile, GSI_CACHE_COPY, GSI_CACHE_INCOMPLETE, GSI_CACHE_LOCKED, GSI_MEDIA_CACHE, GSI_MEDIA_INCOMPLETE, GSI_MEDIA_LOCKED, GSI_MEDIA_STAGE, GSI_STAGE_INVALID, iATLServer, srawObjAttr::iATLServer, srawObjAttr::iFileSet, srawObjAttr::iFileSize, srawObjAttr::iFileSize2, srawObjAttr::iFileType, srawObjAttr::iFS, srawObjAttr::iMediaClass, srawObjAttr::iObjHigh, srawObjAttr::iObjLow, srawObjAttr::iPoolId, srawObjAttr::iRestoHigh, srawObjAttr::iRestoHighHigh, srawObjAttr::iRestoHighLow, srawObjAttr::iRestoLow, srawObjAttr::iRestoLowHigh, srawObjAttr::iVersion, MAX_ATLSERVER, MAX_OBJ_HL, MEDIA_FIXED, MEDIA_LIBRARY, MEDIA_NETWORK, MEDIA_OFFSITE, MEDIA_SHELF, MEDIA_UNAVAILABLE, rawGetPathName(), STREAM, and VERSION_SRAWOBJATTR.
Referenced by rfio_gsi_query(), and rfio_open_gsidaq().
int rawScanObjbuf | ( | char * | pcPath, |
char * | pcFile, | ||
int | iObjnoAll, | ||
int * | piObjBuf0 | ||
) |
Definition at line 3687 of file rawCliProcn.c.
References srawRetrList::cNamehl, and srawRetrList::cNamell.
int rawSortValues | ( | int * | iaValue, |
int | iAll, | ||
int | iFirst, | ||
int | iLast, | ||
int * | iaIndex, | ||
int * | iaIndNew | ||
) |
Definition at line 3790 of file rawCliProcn.c.
References fLogFile, iint, and MAX_FILE_NO.
Referenced by rawCheckObjlist().
|
static |
Definition at line 153 of file rawCliProcn.c.
Referenced by rawGetFilelistEntries(), rawGetFullFile(), rawQueryPrint(), and rawQueryString().
FILE* fLogFile |
Definition at line 185 of file rawapin.c.
Referenced by rawCheckFilelist(), rawCheckObjlist(), rawGetFilelistEntries(), rawGetFullFile(), rawQueryPrint(), rawQueryString(), and rawSortValues().
|
static |
Definition at line 151 of file rawCliProcn.c.
Referenced by rawCheckObjlist().
|
static |
Definition at line 149 of file rawCliProcn.c.
Referenced by rawCheckObjlist(), and rawSortValues().
|
static |
Definition at line 150 of file rawCliProcn.c.
Referenced by rawCheckObjlist().
int* piEntryList |
Definition at line 183 of file rawapin.c.
Referenced by rawGetFilelistEntries().