git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@7159
91ce42f0-d328-0410-95d8-
f526ca767f89
}
#else /* POSIX / UNIX Interface */
-
if (is_vtape()) { /* test backend */
- d_open = vtape_open; /* vtape isn't available for WIN32 */
+ d_open = vtape_open; /* vtape isn't available for WIN32 or FreeBSD */
d_write = vtape_write;
d_close = vtape_close;
d_ioctl = vtape_ioctl;
/****************************************************************/
+#ifdef HAVE_FREEBSD_OS
+int vtape::tape_op(struct mtop *mt_com)
+{
+ return -1;
+}
+
+int vtape::tape_get(struct mtget *mt_get)
+{
+ return -1;
+}
+
+#else /* Posix */
+
int vtape::tape_op(struct mtop *mt_com)
{
int result=0;
return 0;
}
+#endif /* ! HAVE_FREEBSD_OS */
+
int vtape::tape_pos(struct mtpos *mt_pos)
{
if (current_block >= 0) {
General:
+17Jun08
+ebl Disable vtape for FreeBSD.
15Jun08
ebl Modify disk-changer to check if slot contains something before
loading it.