diff --git a/xroot_plugins/XrdCtaDriveLs.hpp b/xroot_plugins/XrdCtaDriveLs.hpp index 3e37ae12c4caffd09c07a655cab7776677528386..92c9761993b7a398ffe83df3c188ced54ef623ad 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) {