]> git.sur5r.net Git - bacula/bacula/blobdiff - bacula/src/stored/butil.c
Make btape fill/unfill work
[bacula/bacula] / bacula / src / stored / butil.c
index dd9343c5a114cc2b50951e55dfb6aa0262feed53..8c1b9996af2ef876bdedc7625a6e0ac8cbadcac3 100644 (file)
@@ -240,15 +240,15 @@ void display_error_status(DEVICE *dev)
    Emsg0(M_ERROR, 0, dev->errmsg);
    status_dev(dev, &status);
    Dmsg1(20, "Device status: %x\n", status);
-   if (status & MT_EOD)
+   if (status & BMT_EOD)
       Emsg0(M_ERROR_TERM, 0, _("Unexpected End of Data\n"));
-   else if (status & MT_EOT)
+   else if (status & BMT_EOT)
       Emsg0(M_ERROR_TERM, 0, _("Unexpected End of Tape\n"));
-   else if (status & MT_EOF)
+   else if (status & BMT_EOF)
       Emsg0(M_ERROR_TERM, 0, _("Unexpected End of File\n"));
-   else if (status & MT_DR_OPEN)
+   else if (status & BMT_DR_OPEN)
       Emsg0(M_ERROR_TERM, 0, _("Tape Door is Open\n"));
-   else if (!(status & MT_ONLINE))
+   else if (!(status & BMT_ONLINE))
       Emsg0(M_ERROR_TERM, 0, _("Unexpected Tape is Off-line\n"));
    else
       Emsg2(M_ERROR_TERM, 0, _("Read error on Record Header %s: %s\n"), dev_name(dev), strerror(errno));