[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: SQLite appears to be compiled without large file support

From: Philip Martin <philip.martin_at_wandisco.com>
Date: Thu, 05 Dec 2013 16:47:46 +0000

Adam Daughterson <adam.daughterson_at_dothill.com> writes:

> mkdir("/mnt/cns/Users/adaughterson/tmp/Tools/.svn", 0777) = 0
> mkdir("/mnt/cns/Users/adaughterson/tmp/Tools/.svn/pristine", 0777) = 0
> mkdir("/mnt/cns/Users/adaughterson/tmp/Tools/.svn/tmp", 0777) = 0
> open("/mnt/cns/Users/adaughterson/tmp/Tools/.svn/wc.db", O_RDWR|O_CREAT|O_LARGEFILE, 0666) = 3
> fcntl64(3, F_GETFD) = 0
> fcntl64(3, F_SETFD, FD_CLOEXEC) = 0
> close(3) = 0
> stat64("/mnt/cns/Users/adaughterson/tmp/Tools/.svn/wc.db", {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
> open("/mnt/cns/Users/adaughterson/tmp/Tools/.svn/wc.db", O_RDWR|O_CREAT|O_LARGEFILE|O_CLOEXEC, 0644) = 3
> fstat64(3, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
> close(3) = 0
> write(2, "svn: E200030: sqlite[S22]: large"..., 58svn: E200030: sqlite[S22]: large file support is disabled
> ) = 58

That's odd. The open, fstat64, close all succeed so what triggered the
error? The message corresponds to SQLITE_NOLFS in the sqlite
amalgamation, so I guess it's the code in findInodeInfo:

  rc = osFstat(fd, &statbuf);
  if( rc!=0 ){
    pFile->lastErrno = errno;
#ifdef EOVERFLOW
    if( pFile->lastErrno==EOVERFLOW ) return SQLITE_NOLFS;
#endif
    return SQLITE_IOERR;
  }

but fstat64 didn't fail.

Does a checkout on a local disk work?

svnadmin create repo
svn co file://`pwd`/repo wc

I've been able to check the binary build logs and the binaries were
built with -D_LARGEFILE64_SOURCE and a 3.7.16.2 SQLite amalgamation.

-- 
Philip Martin | Subversion Committer
WANdisco // *Non-Stop Data*
Received on 2013-12-05 17:48:38 CET

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.