summaryrefslogtreecommitdiff
path: root/sysutils/bacula/files
diff options
context:
space:
mode:
authoradam <adam@pkgsrc.org>2010-03-09 07:06:00 +0000
committeradam <adam@pkgsrc.org>2010-03-09 07:06:00 +0000
commit38b848344e48a414fb84b0ccc5f4d889cadf4be9 (patch)
treee61475a935b66fac6ba86d852b23fbfd8a5e7c47 /sysutils/bacula/files
parentb4530e804a750adde40894a18a03f67f895a687a (diff)
downloadpkgsrc-38b848344e48a414fb84b0ccc5f4d889cadf4be9.tar.gz
Changes 5.0.1:
* We believe that we have resolved most of the problems concerning canceled or failed jobs being "stuck" in the Director. There is one outstanding problem in the SD when canceling jobs that we will fix in the next major release. If you see jobs that seem to be stuck, in general issuing a cancel command in bconsole should now make them go away. Directives: * The default for "Allow Duplicate Jobs" has been changed from no to yes. If you use this directive, please check your conf file, and note the next two items! * AllowHigherDuplicates disabled. It did not work as documented and was confusing. * New directive "CancelLowerLevelDuplicates" See New Features section in the manual. * Truncate on Purge rewritten. See New Features section in the manual. * Bug fixes * Ensure SD asks for help when looping even if poll set. * Fix three-pool regress bug * This version fixes an issue where the console window would start out docked. It is fixed by initiating the variables in the Pages class wi constructor. * Fix make_catalog_backup.pl fails when catalog db is on other host
Diffstat (limited to 'sysutils/bacula/files')
-rwxr-xr-xsysutils/bacula/files/chio-changer19
1 files changed, 16 insertions, 3 deletions
diff --git a/sysutils/bacula/files/chio-changer b/sysutils/bacula/files/chio-changer
index d477daa0a4f..be4b75097b3 100755
--- a/sysutils/bacula/files/chio-changer
+++ b/sysutils/bacula/files/chio-changer
@@ -38,12 +38,15 @@ check_parm_count() {
# Check for special cases where only 2 arguments are needed,
# all others are a minimum of 5
case $2 in
- list)
+ list|listall)
check_parm_count $# 2
;;
slots)
check_parm_count $# 2
;;
+ transfer)
+ check_parm_count $# 4
+ ;;
*)
check_parm_count $# 5
;;
@@ -67,13 +70,17 @@ case $cmd in
;;
list)
- ${CHIO} -f $ctl status slot voltags | awk "/</ { slot=\$2 }\
+ ${CHIO} -f $ctl status slot voltags | /usr/bin/awk "/</ { slot=\$2 }\
/Primary volume tag:/ { tag=\$4 }\
/From:/ { print slot tag }"
;;
+ listall)
+ echo "Not yet implemented"
+ ;;
+
loaded)
- ${CHIO} -f $ctl status drive $drive | awk "BEGIN { from=0 }\
+ ${CHIO} -f $ctl status drive $drive | /usr/bin/awk "BEGIN { from=0 }\
/From:/{ from=\$3 }\
END { print from }"
;;
@@ -81,4 +88,10 @@ case $cmd in
slots)
${CHIO} -f $ctl params | awk "/slots/{print \$2}"
;;
+
+ transfer)
+ ${CHIO} -f $ctl move slot $slot slot $device
+ ;;
esac
+
+sleep 1