Commit ba6d582c authored by Victor.Kotlyar's avatar Victor.Kotlyar
Browse files

CASTOR-4637: RFE: Put back dumptp compression-statistics

Fixed.
parent 6baaa808
......@@ -530,10 +530,7 @@ int Ctape_dmpfil(char *path,
Ctape_dmpmsg (MSG_OUT, " ***** TAPE MARK READ ***** END OF LABEL GROUP\n");
Ctape_dmpmsg (MSG_OUT, " *********************************************************************************************************************\n");
if (dmpparm.maxfile != 0 && nfile >= dmpparm.maxfile) {
/***************************************************************/
/* S. MURRAY 27/01/2014 COMMENTING OUT COMPRESSTION STATISTICS */
/*(void) report_comp_stats (infd, path, dmpparm.devtype); */
/***************************************************************/
(void) report_comp_stats (infd, path, dmpparm.devtype);
Ctape_dmpmsg (MSG_OUT, " DUMP - DUMPING PROGRAM COMPLETE.\n");
close (infd);
return (1);
......@@ -557,10 +554,7 @@ int Ctape_dmpfil(char *path,
Ctape_dmpmsg (MSG_OUT, " *********************************************************************************************************************\n");
if (!volHasAulFormat && dmpparm.maxfile != 0 &&
nfile >= dmpparm.maxfile) {
/***************************************************************/
/* S. MURRAY 27/01/2014 COMMENTING OUT COMPRESSTION STATISTICS */
/* (void) report_comp_stats (infd, path, dmpparm.devtype); */
/***************************************************************/
(void) report_comp_stats (infd, path, dmpparm.devtype);
Ctape_dmpmsg (MSG_OUT, " DUMP - DUMPING PROGRAM COMPLETE.\n");
close (infd);
return (1);
......@@ -619,10 +613,7 @@ int Ctape_dmpfil(char *path,
Ctape_dmpmsg (MSG_OUT, "\n ***** THE RECORDED DATA OCCUPIED %lu bytes OF A CARTRIDGE *****\n",
(unsigned long)tape_used) ;
/***************************************************************/
/* S. MURRAY 27/01/2014 COMMENTING OUT COMPRESSTION STATISTICS */
/* (void) report_comp_stats (infd, path, dmpparm.devtype); */
/***************************************************************/
(void) report_comp_stats (infd, path, dmpparm.devtype);
Ctape_dmpmsg (MSG_OUT, " DUMP - DUMPING PROGRAM COMPLETE.\n");
close (infd);
return (1);
......
......@@ -12,15 +12,7 @@
#include "serrno.h"
#include "sendscsicmd.h"
int get_compression_stats(int tapefd, char *path, char *devtype, COMPRESSION_STATS *comp_stats) {
comp_stats->from_host = 1;
comp_stats->to_tape = 1;
comp_stats->from_tape = 1;
comp_stats->to_host = 1 ;
return (0);
}
int TEMPORARILY_NOT_USED_get_compression_stats(int tapefd,
int get_compression_stats(int tapefd,
char *path,
char *devtype,
COMPRESSION_STATS *comp_stats)
......@@ -167,11 +159,7 @@ int TEMPORARILY_NOT_USED_get_compression_stats(int tapefd,
return (0);
}
int clear_compression_stats(int tapefd, char *path, char *devtype) {
return 0;
}
int TEMPORARILY_NOT_USED_clear_compression_stats(int tapefd,
int clear_compression_stats(int tapefd,
char *path,
char *devtype)
{
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment