]> git.sur5r.net Git - bacula/bacula/blobdiff - bacula/src/stored/dev.c
Make bad Storage check in is_on_same_storage non-fatal
[bacula/bacula] / bacula / src / stored / dev.c
index 1ac76292fc76fcecfa1acc8a6969af936c5cc68f..7a3dafe03dbaca7f7a8c594c4d57243c5f23f530 100644 (file)
@@ -147,26 +147,26 @@ init_dev(JCR *jcr, DEVRES *device)
       Jmsg0(jcr, M_FATAL, 0, _("DVD support is now deprecated\n"));
       return NULL;
    case B_VTAPE_DEV:
-      dev = new vtape;
+      dev = New(vtape);
       break;
 #ifdef USE_FTP
    case B_FTP_DEV:
-      dev = new ftp_device;
+      dev = New(ftp_device);
       break;
 #endif
 #ifdef HAVE_WIN32
 /* TODO: defined in src/win32/stored/mtops.cpp */
    case B_TAPE_DEV:
-      dev = new win32_tape_device;
+      dev = New(win32_tape_device);
       break;
    case B_FILE_DEV:
-      dev = new win32_file_device;
+      dev = New(win32_file_device);
       break;
 #else
    case B_TAPE_DEV:
    case B_FILE_DEV:
    case B_FIFO_DEV:
-      dev = new DEVICE;
+      dev = New(DEVICE);
       break;
 #endif
    default:
@@ -1686,7 +1686,7 @@ void DEVICE::clrerror(int func)
 }
 #endif
 
-/* Clear Subsystem Exception OSF1 */
+/* Clear Subsystem Exception TRU64 */
 #ifdef MTCSE
 {
    struct mtop mt_com;
@@ -1958,7 +1958,7 @@ bool DEVICE::do_tape_mount(int mount, int dotimeout)
    int status, tries;
    berrno be;
 
-   Dsm_check(1);
+   Dsm_check(200);
    if (mount) {
       icmd = device->mount_command;
    } else {
@@ -1992,7 +1992,7 @@ bool DEVICE::do_tape_mount(int mount, int dotimeout)
       set_mounted(false);
       free_pool_memory(results);
       Dmsg0(200, "============ mount=0\n");
-      Dsm_check(1);
+      Dsm_check(200);
       return false;
    }
 
@@ -2015,7 +2015,7 @@ bool DEVICE::do_file_mount(int mount, int dotimeout)
    int status, tries, name_max, count;
    berrno be;
 
-   Dsm_check(1);
+   Dsm_check(200);
    if (mount) {
       icmd = device->mount_command;
    } else {
@@ -2115,7 +2115,7 @@ get_out:
       set_mounted(false);
       free_pool_memory(results);
       Dmsg0(200, "============ mount=0\n");
-      Dsm_check(1);
+      Dsm_check(200);
       return false;
    }