On Wed, Jul 14, 2010 at 3:00 PM, Dustin J. Mitchell <[email protected]> wrote:
> So I notice that it hits this assertion at byte 2**31 of the
> split_diskbuffer. That number is just too precise to be a
> coincidence. You don't, by chance, have your split_diskbuffer on a
> 32-bit filesystem, do you?
>
> Even if you do, we should handle this better. But let me know.
And, of course, once I sent this email, I found the real problem. I
used a 32-bit quantity where I should have used a 64-bit quantity. If
you're compiling from source, the fix is pretty simple:
--- a/device-src/xfer-dest-taper-splitter.c
+++ b/device-src/xfer-dest-taper-splitter.c
@@ -84,7 +84,7 @@ typedef struct FileSlice {
off_t offset;
/* length of data to read */
- gsize length;
+ off_t length;
} FileSlice;
/*
(or you can install Amanda on a 64-bit system..)
Dustin
--
Open Source Storage Engineer
http://www.zmanda.com