From a0e08f88e83b5c07716309ad6feab00a6615f1d1 Mon Sep 17 00:00:00 2001 From: mvelosob <miguel.veloso.barros@cern.ch> Date: Mon, 28 Feb 2022 13:27:23 +0100 Subject: [PATCH] cta-admin dr ls should only show reservation for retrieve mounts --- xroot_plugins/XrdCtaDriveLs.hpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/xroot_plugins/XrdCtaDriveLs.hpp b/xroot_plugins/XrdCtaDriveLs.hpp index 3e37ae12c4..92c9761993 100644 --- a/xroot_plugins/XrdCtaDriveLs.hpp +++ b/xroot_plugins/XrdCtaDriveLs.hpp @@ -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_comment(dr.userComment ? dr.userComment.value() : ""); dr_item->set_reason(dr.reasonUpDown ? dr.reasonUpDown.value() : ""); - dr_item->set_disk_system_name(dr.diskSystemName); - dr_item->set_reserved_bytes(dr.reservedBytes); + if (dr.mountType == cta::common::dataStructures::MountType::Retrieve) { + 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); - auto driveConfig = dr_item->mutable_drive_config(); for (const auto& storedDriveConfig : m_tapeDrivesConfigs) { -- GitLab