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

Large file support with apr 1.2.8, svn 1.4.3, and linux?

From: Chris Frost <chris_at_frostnet.net>
Date: 2007-03-27 21:04:28 CEST

When I try to checkin 6 GBs in a few thousand files, 'svn ci' fails while
"Transmitting file data ....":
        svn: Commit failed (details follow):
        svn: Can't write to file '/home/frost/repo_photos/db/transactions/9-1.txn/rev': File too large

I believe this means subversion+apr cannot use Large Files.
The repository's file system has 17 GB free when the ci fails.

Oddly, it looks like I have built svn and apr with large file support.
I was hoping someone here might know what I have missed?

I am running on linux with glibc 2.3.2 (debian 3.1, parisc, 32bit kernel).
I built apr and apr-util 1.2.8 and subversion 1.4.3.

From apr's config.log:
        configure:24851: checking whether to enable -D_LARGEFILE64_SOURCE
        configure:24904: gcc -o conftest -g -O2 -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE conftest.c >&5
        conftest.c: In function `main':
        conftest.c:32: warning: return type of `main' is not `int'
        configure:24907: $? = 0
        configure:24909: ./conftest
        configure:24912: $? = 0
        configure:24927: result: yes
This looks like apr has large file support, though I did not notice configure
set the standard _FILE_OFFSET_BITS macro to 64.

Both apr-util and subversion's config.logs shows they knows to define
_LARGEFILE64_SOURCE. subversion's SWIG includes set _FILE_OFFSET_BITS=64,
but no one else seems to do so, at least in their configure log.

I can create a >4 GB (sparse) file using dd, e.g.
        $ dd if=/dev/zero of=large seek=4096 bs=1M count=2
        $ ls -l sparse
        -rw-r--r-- 1 frost frost 4297064448 2007-03-27 12:00 sparse

thanks for any thoughts!

Chris Frost  |  <http://www.frostnet.net/chris/>
PGP: <http://www.frostnet.net/chris/about/pgp_key.txt>
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Tue Mar 27 21:04:52 2007

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.