#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 srawFileList::cFile, srawRetrList::cNamehl, srawRetrList::cNamell, fLogFile, and rawGetLLName().
int rawCheckObjlist | ( | int | iFileComp, | |
int | iSort, | |||
char ** | pcObjList, | |||
char ** | pcFileList, | |||
char ** | pcObjComp | |||
) |
Definition at line 410 of file rawCliProcn.c.
References 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, and rawSortValues().
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(), and REMOVE.
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 srawRetrList::cArchiveDate, srawFileList::cFile, srawRetrList::cMoverCache, srawRetrList::cMoverStage, srawRetrList::cNamehl, srawComm::cNamell, srawRetrList::cNamell, srawDataMoverAttr::cNode, srawComm::cNodeRC, srawComm::cNodeWC, srawRetrList::cOwner, srawComm::iAction, srawComm::iATLServer, srawRetrList::iATLServer, srawRetrList::iCacheFS, srawComm::iFSidWC, srawComm::iObjHigh, srawRetrList::iObjHigh, srawComm::iObjLow, srawRetrList::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, and piEntryList.
char* rawGetFullFile | ( | char * | pcFile, | |
char * | pcNamell | |||
) |
Definition at line 3168 of file rawCliProcn.c.
int rawGetWSInfo | ( | srawCliActionComm * | pCliActionComm, | |
srawPoolStatus * | pPoolInfo, | |||
srawWorkSpace ** | ppWorkSpace | |||
) |
Definition at line 2546 of file rawCliProcn.c.
References srawPoolStatusData::cPoolName, srawCliActionComm::iAction, iATLServer, srawPoolStatusData::iCheckSize, IDENT_POOL, IDENT_STATUS, IDENT_WORKSPACE, srawPoolStatusData::iFileAvail, srawPoolStatusData::iFiles, srawPoolStatusData::iFreeSize, srawPoolStatusData::iFreeSizeHW, srawWorkSpace::iIdent, srawPoolStatus::iIdent, srawPoolStatusData::iMaxSize, srawPoolStatusData::iMaxSizeHW, srawPoolStatusData::iMaxWorkSize, srawPoolStatus::iPoolNo, srawCliActionComm::iSocket, srawWorkSpace::iStatus, srawCliActionComm::iStatus, srawWorkSpace::iStatusLen, srawPoolStatus::iStatusLen, srawWorkSpace::iWorkFilesAll, srawWorkSpace::iWorkFilesEst, srawWorkSpace::iWorkFilesSta, srawWorkSpace::iWorkFilesStaTemp, srawWorkSpace::iWorkId, srawWorkSpace::iWorkSizeAll, srawWorkSpace::iWorkSizeEst, srawWorkSpace::iWorkSizeSta, srawWorkSpace::iWorkSizeStaTemp, srawCliActionComm::pcFile, srawCliActionComm::piBuffer, QUERY_POOL, QUERY_WORKSPACE, rawRecvError(), rawRecvHead(), STA_ERROR, STA_ERROR_EOF, and STAGE.
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, srawObjAttr::iATLServer, 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, 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, srawObjAttr::iATLServer, 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, 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, and iint.
Referenced by rawCheckObjlist().
char cPath[MAX_FULL_FILE] = "" [static] |
Definition at line 153 of file rawCliProcn.c.
Referenced by rawGetFilelistEntries(), rawGetFullFile(), rawQueryPrint(), and rawQueryString().
unsigned int iFileList = sizeof(srawFileList) [static] |
Definition at line 151 of file rawCliProcn.c.
Referenced by rawCheckObjlist().
unsigned int iint = sizeof(int) [static] |
Definition at line 149 of file rawCliProcn.c.
Referenced by rawCheckObjlist(), and rawSortValues().
unsigned int iRetrList = sizeof(srawRetrList) [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().