From 7d87b93f8d2437e7ba1fc2076fdf7ed4704b517b Mon Sep 17 00:00:00 2001 From: Kern Sibbald Date: Wed, 2 Mar 2005 16:41:05 +0000 Subject: [PATCH] Take MediaType from Storage record git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@1858 91ce42f0-d328-0410-95d8-f526ca767f89 --- bacula/kernstodo | 6 ++---- bacula/src/dird/msgchan.c | 2 +- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/bacula/kernstodo b/bacula/kernstodo index 9e798b2759..e69f45c859 100644 --- a/bacula/kernstodo +++ b/bacula/kernstodo @@ -59,6 +59,8 @@ Autochangers: and possibly manipulating the autochanger (much asked for). - 8. Automatic updating of Drive status from SD to DIR when something changes (Volume, offline, append, read, ...). +- 9. Check if a Volume is mounted on another drive in an Autochanger. + Autochangers Done: - 1. Automatic use of more than one drive in an autochanger (done) @@ -84,10 +86,6 @@ For 1.37: - Add disk seeking on restore. - Add Python writable variable for changing the Priority, Client, Storage, JobStatus (error), ... -- SD Autochanger work - - Lock all devices when using changer script. - - Check if Volume is mounted on another device - - Find a free drive if Changer name used. - SD Python - Solicit Events - FD Python diff --git a/bacula/src/dird/msgchan.c b/bacula/src/dird/msgchan.c index dce673fd4a..632b7783a5 100644 --- a/bacula/src/dird/msgchan.c +++ b/bacula/src/dird/msgchan.c @@ -212,7 +212,7 @@ int start_storage_daemon_job(JCR *jcr, alist *store, int append) /* Loop over alternative storages until one is OK */ foreach_alist(dev, storage->device) { pm_strcpy(device_name, dev->hdr.name); - pm_strcpy(media_type, dev->MediaType); + pm_strcpy(media_type, storage->media_type); bash_spaces(device_name); bash_spaces(media_type); bnet_fsend(sd, use_device, device_name.c_str(), -- 2.39.5