Added PIT time to deletes

This commit is contained in:
Deon George 2010-12-21 07:27:15 +11:00 committed by Deon George
parent 4d331a492a
commit 1e93ee6c3a

View File

@ -563,7 +563,7 @@ int tsm_matchone_cb(dsmQueryType qType, DataBlk *qResp, void * userdata)
int tsm_deletefile(dsUint32_t sesshandle, char *fsname, char *filename, int tsm_deletefile(dsUint32_t sesshandle, char *fsname, char *filename,
char *description, dsmSendType sendtype, char verbose) char *description, dsmSendType sendtype, char verbose, char *pitdate)
{ {
dsInt16_t rc; dsInt16_t rc;
dsUint16_t reason=0; dsUint16_t reason=0;
@ -583,7 +583,7 @@ int tsm_deletefile(dsUint32_t sesshandle, char *fsname, char *filename,
cbdata.numfound = 0; cbdata.numfound = 0;
rc = tsm_queryfile(sesshandle, &objName, description, sendtype, rc = tsm_queryfile(sesshandle, &objName, description, sendtype,
verbose, tsm_matchone_cb, &cbdata, NULL); verbose, tsm_matchone_cb, &cbdata, pitdate);
if(rc != DSM_RC_OK) { if(rc != DSM_RC_OK) {
return 0; return 0;
} }
@ -1033,7 +1033,7 @@ int main(int argc, char *argv[]) {
} }
if(delete) { if(delete) {
if(!tsm_deletefile(sesshandle, space, filename, desc, sendtype, verbose)) { if(!tsm_deletefile(sesshandle, space, filename, desc, sendtype, verbose, pitdate)) {
dsmTerminate(sesshandle); dsmTerminate(sesshandle);
exit(7); exit(7);
} }