]> git.sur5r.net Git - bacula/bacula/commitdiff
Add comments
authorKern Sibbald <kern@sibbald.com>
Sun, 23 Sep 2007 19:01:38 +0000 (19:01 +0000)
committerKern Sibbald <kern@sibbald.com>
Sun, 23 Sep 2007 19:01:38 +0000 (19:01 +0000)
git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@5632 91ce42f0-d328-0410-95d8-f526ca767f89

bacula/src/stored/reserve.c

index 745e176068282d362fca005562b55e386fa96569..e90e9d01270745ba410b61b049c215020e07ea95 100644 (file)
@@ -1135,6 +1135,17 @@ static int reserve_device(RCTX &rctx)
                }
                goto bail_out;
             }
+            /*
+             * Note. Under some circumstances, the Director can hand us
+             *  a Volume name that is no the same as the one on the current
+             *  drive, and in that case, the call above to find the next
+             *  volume will fail because in attempting to reserve the Volume
+             *  the code will realize that we already have a tape mounted,
+             *  and it will fail.  This *should* only happen if there are 
+             *  writers, thus the following test.  In that case, we simply
+             *  bail out, and continue waiting, rather than plunging on
+             *  and hoping that the operator can resolve the problem. 
+             */
             if (dcr->dev->num_writers != 0) {
                if (dcr->VolumeName[0]) {
                   volume_unused(dcr);