]> git.sur5r.net Git - bacula/bacula/blobdiff - bacula/src/stored/vtape.h
update version
[bacula/bacula] / bacula / src / stored / vtape.h
index da788d94e137b3a2eeadde1415d5cd4709af3dab..b4cf257200eedaa4b8ab49d8036504cdaa69f94d 100644 (file)
@@ -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 */
@@ -61,12 +63,12 @@ class vtape {
 private:
    int         fd;              /* Our file descriptor */
 
-   off_t       file_block;      /* size */
-   off_t       max_block;
+   boffset_t   file_block;      /* size */
+   boffset_t   max_block;
 
-   off_t       last_FM;         /* last file mark (last file) */
-   off_t       next_FM;         /* next file mark (next file) */
-   off_t       cur_FM;          /* current file mark */
+   boffset_t   last_FM;         /* last file mark (last file) */
+   boffset_t   next_FM;         /* next file mark (next file) */
+   boffset_t   cur_FM;          /* current file mark */
 
    bool        atEOF;           /* End of file */
    bool        atEOT;           /* End of media */