From: Kern Sibbald Date: Sat, 21 Sep 2002 21:14:23 +0000 (+0000) Subject: More changer fixes for Console X-Git-Tag: Release-1.26~12 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=66ba667aa59d7238de88e552b5c4fcb9db4be20e;p=bacula%2Fbacula More changer fixes for Console git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@159 91ce42f0-d328-0410-95d8-f526ca767f89 --- diff --git a/bacula/kernstodo b/bacula/kernstodo index db09c6c998..e670f18c87 100644 --- a/bacula/kernstodo +++ b/bacula/kernstodo @@ -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". diff --git a/bacula/src/stored/dircmd.c b/bacula/src/stored/dircmd.c index aaa26431c2..ebfd6f7c50 100644 --- a/bacula/src/stored/dircmd.c +++ b/bacula/src/stored/dircmd.c @@ -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);