From fa55c258ff258de1f19f684f548dce617f0dff8e Mon Sep 17 00:00:00 2001
From: Steven Murray <Steven.Murray@cern.ch>
Date: Mon, 24 Sep 2018 20:50:54 +0200
Subject: [PATCH] Added '# phys files' column to the 'cta tapepool ls' command

---
 xroot_plugins/XrdSsiCtaRequestMessage.cpp | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/xroot_plugins/XrdSsiCtaRequestMessage.cpp b/xroot_plugins/XrdSsiCtaRequestMessage.cpp
index e51542855a..dead87bd75 100644
--- a/xroot_plugins/XrdSsiCtaRequestMessage.cpp
+++ b/xroot_plugins/XrdSsiCtaRequestMessage.cpp
@@ -1985,7 +1985,7 @@ void RequestMessage::processTapePool_Ls(const cta::admin::AdminCmd &admincmd, ct
    if(!tp_list.empty())
    {
       const std::vector<std::string> header = {
-         "name","vo", "# tapes","# partial","size","used","avail","use%","encrypt",
+         "name","vo","# tapes","# phys files","# partial","size","used","avail","use%","encrypt",
          "c.user","c.host","c.time","m.user","m.host","m.time","comment"
       };
       std::vector<std::vector<std::string>> responseTable;
@@ -2002,6 +2002,7 @@ void RequestMessage::processTapePool_Ls(const cta::admin::AdminCmd &admincmd, ct
          currentRow.push_back(tp.vo);
          currentRow.push_back(std::to_string(tp.nbTapes));
          currentRow.push_back(std::to_string(tp.nbPartialTapes));
+         currentRow.push_back(std::to_string(tp.nbPhysicalFiles));
          currentRow.push_back(std::to_string(tp.capacityBytes/1000000000) + "G");
          currentRow.push_back(std::to_string(tp.dataBytes/1000000000) + "G");
          currentRow.push_back(std::to_string(avail/1000000000) + "G");
-- 
GitLab