Product Documentation

FairCom Replication JSON RPC API

Previous Topic

Next Topic

ctMemphisFSLoad

int ctMemphisFSLoad( pRCESJson request, ppRCESJson result )

Description:

Recursively scan all the files under the given "rootTreePath" filtered by a given "maskFilter" using the given "configFileName" and populate both VOLUME and FILE tables.

HTTP URL: <baseURL>/ctMemphisFSLoad/

HTTP Verb: POST

Parameters:

  • request [IN] - Filesystem scan request in JSON format. For example:

{

"volume": 1, // required

"root": "FairCom", // optional, if not passed, scan assumes

root the whole volume, see

Note 3 - File Separators

"recursive": true, // optional, default is true, see Obs1

"physicalCheck": false, // optional, default is false, after regular

FileSystem scan, double check if the list of

files physically exist, if they don't, remove

them from FileTable (in case it is not in use

to any replication)

"mask": "*.dat", // optional, default is *

"ctreeOnly": true // optional, default is false, if true, it will

scan only c‑tree data files

}

or

{

"volume": 1,

"root": "FairCom\ctsrvr", // see

Note 3 - File Separators

"recursive": true,

"physicalCheck": false,

"mask": "*"

}

  • result [OUT] - Result in JSON format. For example:

{

"success": true,

"error":

{

"errorCode": 0,

"message": "Success"

},

"actionID":44135

}

Return:

Error code.

TOCIndex