From 1e93ee6c3aa92bed1b208df2eea4e305f263c568 Mon Sep 17 00:00:00 2001 From: Deon George Date: Tue, 21 Dec 2010 07:27:15 +1100 Subject: [PATCH] Added PIT time to deletes --- tsmpipe.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tsmpipe.c b/tsmpipe.c index e567959..87ccdf7 100644 --- a/tsmpipe.c +++ b/tsmpipe.c @@ -563,7 +563,7 @@ int tsm_matchone_cb(dsmQueryType qType, DataBlk *qResp, void * userdata) 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; dsUint16_t reason=0; @@ -583,7 +583,7 @@ int tsm_deletefile(dsUint32_t sesshandle, char *fsname, char *filename, cbdata.numfound = 0; rc = tsm_queryfile(sesshandle, &objName, description, sendtype, - verbose, tsm_matchone_cb, &cbdata, NULL); + verbose, tsm_matchone_cb, &cbdata, pitdate); if(rc != DSM_RC_OK) { return 0; } @@ -1033,7 +1033,7 @@ int main(int argc, char *argv[]) { } if(delete) { - if(!tsm_deletefile(sesshandle, space, filename, desc, sendtype, verbose)) { + if(!tsm_deletefile(sesshandle, space, filename, desc, sendtype, verbose, pitdate)) { dsmTerminate(sesshandle); exit(7); }