From a962e311ecee82c9cd6062bfd323533eda3afce5 Mon Sep 17 00:00:00 2001 From: Eric Bollengier Date: Thu, 8 May 2008 19:09:59 +0000 Subject: [PATCH] ebl Cleanup for supporting large file git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@6919 91ce42f0-d328-0410-95d8-f526ca767f89 --- bacula/patches/testing/faketape.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/bacula/patches/testing/faketape.c b/bacula/patches/testing/faketape.c index f4d714180d..0e54ff3fab 100644 --- a/bacula/patches/testing/faketape.c +++ b/bacula/patches/testing/faketape.c @@ -43,9 +43,8 @@ Device { */ -#include -#include -#include +#include "bacula.h" /* define 64bit file usage */ +#include "stored.h" #include "faketape.h" static int dbglevel = 10; @@ -774,7 +773,7 @@ int faketape::open(const char *pathname, int uflags) return -1; } - fd = ::open(pathname, O_CREAT | O_RDWR, 0700); + fd = ::open(pathname, O_CREAT | O_RDWR | O_LARGEFILE, 0700); if (fd < 0) { return -1; } @@ -822,10 +821,10 @@ int faketape::seek_file() if(lseek(fd, pos, SEEK_SET) == -1) { return -1; } + last_file = (last_file > current_file)?last_file:current_file; if (current_block > 0) { fsr(current_block); } - last_file = (last_file > current_file)?last_file:current_file; inplace = true; return 0; -- 2.39.5