Skip to content
Snippets Groups Projects
Commit c94ea5fd authored by Cedric CAFFY's avatar Cedric CAFFY
Browse files

Added the repack ls --json to the repack_systemtest script

parent 212357a2
No related branches found
No related tags found
No related merge requests found
......@@ -172,7 +172,17 @@ if test 1 = `admin_cta --json repack ls --vid ${VID_TO_REPACK} | jq -r '[.[0] |
exit 1
fi
echo
destinationInfos=`admin_cta --json repack ls --vid ${VID_TO_REPACK} | jq -r ". [0] | .destinationInfos"`
if [[ `echo $destinationInfos | jq length` != 0 ]]
then
header="DestinationVID\tNbFiles\ttotalSize\n"
{ echo -e $header; echo $destinationInfos | jq -r ".[] | [(.vid),(.files),(.bytes)] | @tsv"; } | column -t
fi
echo
echo "Repack request on VID ${VID_TO_REPACK} succeeded."
echo
exec /root/repack_generate_report.sh -v ${VID_TO_REPACK} -r ${REPORT_DIRECTORY} ${ADD_COPIES_ONLY} &
wait $!
......
......@@ -165,7 +165,7 @@ namespace daemon {
throw castor::tape::tapeserver::daemon::ErrorFlag();
}
Request req = m_parent.m_queue.pop();
auto jobs = m_parent.m_archiveMount.getNextJobBatch(2 * req.filesRequested, 2 * req.bytesRequested, m_parent.m_lc);
auto jobs = m_parent.m_archiveMount.getNextJobBatch(req.filesRequested, req.bytesRequested, m_parent.m_lc);
uint64_t files=jobs.size();
uint64_t bytes=0;
for (auto & j:jobs) bytes+=j->archiveFile.fileSize;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment