From: Eric Bollengier Date: Thu, 8 May 2008 19:09:59 +0000 (+0000) Subject: ebl Cleanup for supporting large file X-Git-Tag: Release-3.0.0~1475 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=4843e472f07e3f2be4b12afd036b8fd8e1213107;p=bacula%2Fbacula ebl Cleanup for supporting large file git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@6919 91ce42f0-d328-0410-95d8-f526ca767f89 --- 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;