]> git.sur5r.net Git - bacula/bacula/blobdiff - bacula/src/stored/autochanger.c
This commit was manufactured by cvs2svn to create tag
[bacula/bacula] / bacula / src / stored / autochanger.c
index a6a19870c99d6ffdf73302358d91e91f6a7caa7c..c2178454b8956465cc5c5127de592773ba686e6c 100644 (file)
@@ -128,14 +128,19 @@ int autoload_device(JCR *jcr, DEVICE *dev, int writing, BSOCK *dir)
    return rtn_stat;
 }
 
-void invalidate_slot_in_catalog(JCR *jcr)
+/*
+ * The Volume is not in the correct slot, so mark this 
+ *   Volume as not being in the Changer.
+ */
+void invalid_slot_in_catalog(JCR *jcr, DEVICE *dev)
 {
    Jmsg(jcr, M_ERROR, 0, _("Autochanger Volume \"%s\" not found in slot %d.\n"
 "    Setting slot to zero in catalog.\n"),
        jcr->VolCatInfo.VolCatName, jcr->VolCatInfo.Slot);
-   jcr->VolCatInfo.Slot = 0; /* invalidate slot */
-   Dmsg0(200, "update vol info in mount\n");
-   dir_update_volume_info(jcr, &jcr->VolCatInfo, 1);  /* set slot */
+// jcr->VolCatInfo.InChanger = false;
+// dev->VolCatInfo.InChanger = false;
+   Dmsg0(100, "update vol info in mount\n");
+   dir_update_volume_info(jcr, dev, 1);  /* set new status */
 }
 
 /*