]> git.sur5r.net Git - bacula/bacula/commitdiff
Take MediaType from Storage record
authorKern Sibbald <kern@sibbald.com>
Wed, 2 Mar 2005 16:41:05 +0000 (16:41 +0000)
committerKern Sibbald <kern@sibbald.com>
Wed, 2 Mar 2005 16:41:05 +0000 (16:41 +0000)
git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@1858 91ce42f0-d328-0410-95d8-f526ca767f89

bacula/kernstodo
bacula/src/dird/msgchan.c

index 9e798b2759e8645c6ce9156ff718ce5489cb3322..e69f45c85936c19e44e7d53d5aebfeb682e8e7f0 100644 (file)
@@ -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
index dce673fd4ac7992ce8134d59be1629aa94f368ef..632b7783a5a054e214ed7ba10ab02d2257e62c35 100644 (file)
@@ -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(),