]> git.sur5r.net Git - bacula/bacula/commitdiff
More changer fixes for Console
authorKern Sibbald <kern@sibbald.com>
Sat, 21 Sep 2002 21:14:23 +0000 (21:14 +0000)
committerKern Sibbald <kern@sibbald.com>
Sat, 21 Sep 2002 21:14:23 +0000 (21:14 +0000)
git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@159 91ce42f0-d328-0410-95d8-f526ca767f89

bacula/kernstodo
bacula/src/stored/dircmd.c

index db09c6c998db36969d8598eaf9528b6511c4a5b9..e670f18c874d7b44e708bd9940e51f37c705e753 100644 (file)
@@ -29,6 +29,7 @@ From Chuck:
 
 - Had to label second tape using the autochanger two times. The
   first time the second tape was apparently loaded but not labeled.
+  3903 Failed to label Volume: ERR=dev.c:285 Bad call to rewind_dev. Device /dev/nst0 not open
 - Put MaximumVolumeSize in Director.
 - Document how to cancel a job that is waiting on a Volume. 
   Must "cancel" then "mount".
index aaa26431c2384ca5d1a973d93d59f6e35ccbab5d..ebfd6f7c50e9ece6c88d1ee214dc2c720dce7c67 100644 (file)
@@ -338,7 +338,10 @@ already labeled: %s\n"), dev->VolHdr.VolName);
         break;
       case VOL_IO_ERROR:
       case VOL_NO_LABEL:
-        write_volume_label_to_dev(jcr, jcr->device, vname, poolname);
+        if (!write_volume_label_to_dev(jcr, jcr->device, vname, poolname)) {
+            bnet_fsend(dir, _("3903 Failed to label Volume: ERR=%s\n"), strerror_dev(dev));
+           break;
+        }
         strcpy(jcr->VolumeName, vname);
          bnet_fsend(dir, _("3000 OK label. Volume=%s Device=%s\n"), 
            vname, dev->dev_name);