From: Kern Sibbald Date: Sun, 5 Oct 2008 09:57:27 +0000 (+0000) Subject: Increase vtape max block to 20GB X-Git-Tag: Release-3.0.0~877 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=624011e2159d3f144904f4a6b86c206cc0d0ee21;p=bacula%2Fbacula Increase vtape max block to 20GB git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@7705 91ce42f0-d328-0410-95d8-f526ca767f89 --- diff --git a/bacula/src/stored/vtape.c b/bacula/src/stored/vtape.c index daeb7d9a66..bf55cc6617 100644 --- a/bacula/src/stored/vtape.c +++ b/bacula/src/stored/vtape.c @@ -433,7 +433,7 @@ vtape::vtape() current_file = 0; current_block = -1; - max_block = 2*1024*2048; /* 2GB */ + max_block = VTAPE_MAX_BLOCK; } vtape::~vtape() diff --git a/bacula/src/stored/vtape.h b/bacula/src/stored/vtape.h index 146083f875..b4cf257200 100644 --- a/bacula/src/stored/vtape.h +++ b/bacula/src/stored/vtape.h @@ -52,6 +52,8 @@ ssize_t vtape_write(int fd, const void *buffer, size_t count); #define FTAPE_MAX_DRIVE 50 +#define VTAPE_MAX_BLOCK 20*1024*2048; /* 20GB */ + typedef enum { VT_READ_EOF, /* Need to read the entire EOF struct */ VT_SKIP_EOF /* Have already read the EOF byte */ diff --git a/bacula/technotes-2.5 b/bacula/technotes-2.5 index 935b1455e1..854f5a2782 100644 --- a/bacula/technotes-2.5 +++ b/bacula/technotes-2.5 @@ -17,6 +17,8 @@ dbdriver remove reader/writer in FOPTS???? General: +05Oct08 +kes Increase vtape max block to 20GB. 04Oct08 kes Refactor restore code to create a close_previous_stream(). This This may destabilize the source.