Skip to content
Snippets Groups Projects
Commit a0e08f88 authored by mvelosob's avatar mvelosob
Browse files

cta-admin dr ls should only show reservation for retrieve mounts

parent e9306974
No related branches found
No related tags found
No related merge requests found
...@@ -127,10 +127,11 @@ int DriveLsStream::fillBuffer(XrdSsiPb::OStreamBuffer<Data> *streambuf) { ...@@ -127,10 +127,11 @@ int DriveLsStream::fillBuffer(XrdSsiPb::OStreamBuffer<Data> *streambuf) {
dr_item->set_raw_library_slot(dr.rawLibrarySlot ? dr.rawLibrarySlot.value() : ""); dr_item->set_raw_library_slot(dr.rawLibrarySlot ? dr.rawLibrarySlot.value() : "");
dr_item->set_comment(dr.userComment ? dr.userComment.value() : ""); dr_item->set_comment(dr.userComment ? dr.userComment.value() : "");
dr_item->set_reason(dr.reasonUpDown ? dr.reasonUpDown.value() : ""); dr_item->set_reason(dr.reasonUpDown ? dr.reasonUpDown.value() : "");
dr_item->set_disk_system_name(dr.diskSystemName); if (dr.mountType == cta::common::dataStructures::MountType::Retrieve) {
dr_item->set_reserved_bytes(dr.reservedBytes); dr_item->set_disk_system_name(dr.diskSystemName);
dr_item->set_reserved_bytes(dr.reservedBytes);
}
dr_item->set_session_elapsed_time(dr.sessionElapsedTime ? dr.sessionElapsedTime.value() : 0); dr_item->set_session_elapsed_time(dr.sessionElapsedTime ? dr.sessionElapsedTime.value() : 0);
auto driveConfig = dr_item->mutable_drive_config(); auto driveConfig = dr_item->mutable_drive_config();
for (const auto& storedDriveConfig : m_tapeDrivesConfigs) { for (const auto& storedDriveConfig : m_tapeDrivesConfigs) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment