[Box Backup-dev] COMMIT r299 - in box/trunk: . infrastructure
lib/backupclient test/raidfile
Martin Ebourne
boxbackup-dev@fluffy.co.uk
Fri, 06 Jan 2006 08:57:11 +0000
On Fri, 2006-01-06 at 08:37 +0000, Ben Summers wrote:
> Do you get ENOTSUP if you try and set them when they're not enabled?
According to the man page, yes, so detecting them being available is not
hard.
> I'll write a simple test this morning, and then you can verify and
> extend it. It's nice to have a test written by someone who didn't
> write the original code.
Sure is!
> Ah, I understand what's happened. Indeed, interception is disabled if
> large file support is active, but large file support is a Linux only
> thing. On other platforms, large files are not a recent innovation
> and never needed anything special to be done.
Ah, ok. So they probably should work fine on 64 bit linux on which the
normal calls obviously work in 64 bit mode anyway. Actually, just tried
the intercepts on this machine (amd64) and they all test and pass.
I'm pretty sure Solaris uses large file support the same as linux
(suspect that's where linux got the idea from).
> So, what's the best autoconf way of making this all Linux only?
Of course, what we want is for those tests only to be active if
intercepts are working. So we need an autoconf test that tries the
intercepts out and reports success/failure. I'll take a look at that
when I get chance.
Maybe it wouldn't be too hard to figure out how to get the tests to work
on 32 bit linux too. Possibly just as simple as intercepting a foo64
version of the calls?
Cheers,
Martin.