git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@6919
91ce42f0-d328-0410-95d8-
f526ca767f89
*/
-#include <dirent.h>
-#include <sys/mtio.h>
-#include <ctype.h>
+#include "bacula.h" /* define 64bit file usage */
+#include "stored.h"
#include "faketape.h"
static int dbglevel = 10;
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;
}
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;