Commit 64f13c82 authored by Michael Davis's avatar Michael Davis
Browse files

Updates TapeFileLsItem to new format

The main motivation for this change is to change the checksum type to a
string for sending it to cta-admin (as opposed to a byte array, used
for communicating with EOS). This allows us to decode the checksum
before sending it which makes things a lot easier for operator scripts
which parse the JSON.
parent 060b3336
......@@ -459,9 +459,44 @@ message TapeLsItem {
}
message TapeFileLsItem {
cta.common.ArchiveFile af = 1;
cta.common.TapeFile tf = 2;
uint64 copy_nb = 3;
// Differs from cta.common.ChecksumBlob.Checksum in that value is a decoded string not a byte array
message Checksum {
enum Type {
NONE = 0; //< No checksum specified
ADLER32 = 1; //< Adler-32 checksum
CRC32 = 2; //< CRC-32 checksum
CRC32C = 3; //< CRC-32C checksum
MD5 = 4; //< MD5 128-bit hash
SHA1 = 5; //< SHA-1 160-bit hash
}
Type type = 1;
string value = 2;
}
message ArchiveFile {
uint64 archive_id = 1; //< Archive File ID
string storage_class = 2; //< Storage Class
uint64 creation_time = 3; //< Creation Time
repeated Checksum checksum = 4; //< Array of checksums
uint64 size = 5; //< File size
}
message DiskFile {
string disk_id = 1; //< Disk file ID
string disk_instance = 2; //< Disk instance
OwnerId owner_id = 3; //< Owner user ID and group ID of the disk file
string path = 4; //< Path of the disk file
}
message TapeFile {
string vid = 1; //< Volume ID of the tape on which the file has been written
uint64 copy_nb = 2;
uint64 block_id = 3; //< The position of the file on tape: Logical Block ID
uint64 f_seq = 4; //< The position of the file on tape: File Sequence number
uint64 superseded_by_f_seq = 5; //< The fSeq of the superseding tape file. Only valid if superseded_by_vid is not empty
string superseded_by_vid = 6; //< The Volume ID of the tape file superseding this one. Can be empty.
}
cta.common.ArchiveFile af = 1;
cta.common.DiskFile df = 2;
cta.common.TapeFile tf = 3;
}
message TapePoolLsItem {
......
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