Commit e1547852 authored by Eric Cano's avatar Eric Cano
Browse files

Added support for listing files with checksum not set (and changed the format...

Added support for listing files with checksum not set (and changed the format to adler32:0xABCDEF12).
parent 47146bca
......@@ -85,6 +85,9 @@ std::string cta::Checksum::str() const {
case CHECKSUMTYPE_ADLER32:
oss << "adler32:" << std::hex << std::showbase << getNumeric<uint32_t>();
break;
case CHECKSUMTYPE_NONE:
oss << "-";
break;
default:;
}
return oss.str();
......
......@@ -214,8 +214,9 @@ void cta::MockNameServer::assertStorageClassIsNotInUse(
//------------------------------------------------------------------------------
std::string cta::MockNameServer::fromNameServerTapeFileToString(const cta::NameServerTapeFile &tapeFile) const {
std::stringstream ss;
ss << tapeFile.checksum.checksumTypeToStr(tapeFile.checksum.getType())
<< " " << tapeFile.checksum.getNumeric<uint32_t>()
<< " " << tapeFile.checksum.str()
<< " " << tapeFile.compressedSize
<< " " << tapeFile.copyNb
<< " " << tapeFile.size
......
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