Skip to content

Commit

Permalink
Make clear when vtape is compiled in.
Browse files Browse the repository at this point in the history
  • Loading branch information
Marco van Wieringen committed Feb 28, 2014
1 parent 1cb318d commit abd2527
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 11 deletions.
7 changes: 0 additions & 7 deletions src/include/version.h
Expand Up @@ -93,13 +93,6 @@
#undef _USE_LOCKMGR
#endif

/*
* USE_VTAPE is a dummy tape driver. This is useful to run regress test.
*/
#ifdef HAVE_LINUX_OS
#define USE_VTAPE
#endif

/*
* for fastest speed but you must have a UPS to avoid unwanted shutdowns
*/
Expand Down
4 changes: 2 additions & 2 deletions src/stored/backends/vtape.c
Expand Up @@ -50,7 +50,7 @@ Device {

#include "bareos.h"

#ifdef USE_VTAPE
#ifdef HAVE_LINUX_OS
#include "stored.h"
#include "backends/vtape.h"

Expand Down Expand Up @@ -926,4 +926,4 @@ void vtape::dump()
Dmsg4(dbglevel+1, "EOF=%i EOT=%i EOD=%i BOT=%i\n",
atEOF, atEOT, atEOD, atBOT);
}
#endif /* ! USE_VTAPE */
#endif /* ! HAVE_LINUX_OS */
4 changes: 2 additions & 2 deletions src/stored/dev.c
Expand Up @@ -72,7 +72,7 @@

#include "bareos.h"
#include "stored.h"
#ifdef USE_VTAPE
#ifdef HAVE_LINUX_OS
#include "backends/vtape.h"
#endif
#ifdef HAVE_GFAPI
Expand Down Expand Up @@ -158,7 +158,7 @@ m_init_dev(JCR *jcr, DEVRES *device, bool new_init)
}

switch (device->dev_type) {
#ifdef USE_VTAPE
#ifdef HAVE_LINUX_OS
case B_VTAPE_DEV:
dev = New(vtape);
break;
Expand Down

0 comments on commit abd2527

Please sign in to comment.