From 74ac05b67806eeed9cf2aa09b0e4076b89fb7129 Mon Sep 17 00:00:00 2001 From: Kern Sibbald Date: Thu, 7 Jul 2005 14:18:32 +0000 Subject: [PATCH] Modify mtx-changer.in script to return slot:barcode for Volumes that are loaded in the drives. git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@2178 91ce42f0-d328-0410-95d8-f526ca767f89 --- bacula/scripts/mtx-changer.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bacula/scripts/mtx-changer.in b/bacula/scripts/mtx-changer.in index adf500ca99..70703816eb 100644 --- a/bacula/scripts/mtx-changer.in +++ b/bacula/scripts/mtx-changer.in @@ -132,7 +132,7 @@ case $cmd in ${MTX} -f $ctl status >${TMPDIR}/mtx.$$ rtn=$? cat ${TMPDIR}/mtx.$$ | grep " *Storage Element [0-9]*:.*Full" | awk "{print \$3 \$4}" | sed "s/Full *\(:VolumeTag=\)*//" - cat ${TMPDIR}/mtx.$$ | grep "^Data Transfer Element [0-9]*:Full (Storage Element [0-9]*Loaded" | awk '{printf "%s:%s\n",$7,$10}' + cat ${TMPDIR}/mtx.$$ | grep "^Data Transfer Element [0-9]*:Full (Storage Element [0-9]" | awk '{printf "%s:%s\n",$7,$10}' # # If you have a VXA PacketLoader and the above does not work, try # turning it off and enabling the following line. -- 2.39.5