return false;
}
}
- Dmsg1(000, "open_dev %s OK\n", dev_name(dev));
+ Pmsg1(000, "open_dev %s OK\n", dev_name(dev));
unlock_device(dev);
free_block(block);
return true;
return 1;
}
- Pmsg0(-1, "\nTo test the autochanger you must have a blank tape in Slot 1.\n"
- "I'm going to write on it.\n");
+ Pmsg0(-1, "\nAh, I see you have an autochanger configured.\n"
+ "To test the autochanger you must have a blank tape\n"
+ " that I can write on in Slot 1.\n");
if (!get_cmd("\nDo you wish to continue with the Autochanger test? (y/n): ")) {
return 0;
}
if (dev->file != 5) {
goto bail_out;
}
-
+ Pmsg0(-1, _("\n=== End Forward space files test ===\n\n"));
return 1;
bail_out:
dev = init_dev(NULL, device);
jcr->device->dev = dev;
+ new_dcr(jcr, dev);
if (!dev || !first_open_device(dev)) {
Jmsg1(jcr, M_FATAL, 0, _("Cannot open %s\n"), jcr->dev_name);
return NULL;