[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Mldonkey-users] >2GB Bug again?
From: |
Andre Hinrichs |
Subject: |
Re: [Mldonkey-users] >2GB Bug again? |
Date: |
Fri, 14 Nov 2003 16:16:11 +0100 |
User-agent: |
KMail/1.5.4 |
> > Fatal error: exception Unix.Unix_error(67, "fstat: error in fstat", "")
>
> this looks to me like your fs cant handle files >2gb...
> have you checked this with dd for example (as i mentioned a few mails
> ago)?
No, FS is ReiserFS and it supports huge files.
Standard UNIX command 'stat' gives the following:
File: `suse-8.2-1.iso'
Size: 3939696640 Blocks: 7702234 IO Block: 4096 regular file
Device: 301h/769d Inode: 797 Links: 1
Access: (0644/-rw-r--r--) Uid: ( 0/ root) Gid: ( 0/ root)
Access: 2003-11-10 19:59:14.000000000 +0100
Modify: 2003-04-25 12:56:04.000000000 +0200
Change: 2003-11-10 20:11:50.000000000 +0100
This is definitely OK. But the standard C function 'stat' seems to have a
problem. I wrote a short test program in C (sorry, I don't know ocaml) to
test the system function:
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
#include <stdio.h>
int main(void)
{
struct stat buf;
lstat("/suse-8.2-1.iso", &buf);
printf("%lf\n", (double)buf.st_size);
return 0;
}
This prints a size of -355270656.000000 which is definitely NOT OK!
Since even ocaml seems to use this system function this might be the problem.
I will look into the sources of the 'stat' command the evening to see which
function is called there.
Andre
- [Mldonkey-users] >2GB Bug again?, Martin, 2003/11/13
- Re: [Mldonkey-users] >2GB Bug again?, Martin, 2003/11/13
- Re: [Mldonkey-users] >2GB Bug again?, Andre Hinrichs, 2003/11/14
- Re: [Mldonkey-users] >2GB Bug again?, Martin, 2003/11/14
- Re: [Mldonkey-users] >2GB Bug again?,
Andre Hinrichs <=
- Re: [Mldonkey-users] >2GB Bug again?, Pierre Etchemaite, 2003/11/14
- Re: [Mldonkey-users] >2GB Bug again?, Andre Hinrichs, 2003/11/14
- Re: [Mldonkey-users] >2GB Bug again?, Pierre Etchemaite, 2003/11/14
- Re: [Mldonkey-users] >2GB Bug again?, Martin, 2003/11/14
- Re: [Mldonkey-users] >2GB Bug again?, Fortin Denis, 2003/11/14
- Re: [Mldonkey-users] >2GB Bug again?, Martin, 2003/11/14
- Re: [Mldonkey-users] >2GB Bug again?, Martin, 2003/11/14
- Re: [Mldonkey-users] >2GB Bug again?, Fortin Denis, 2003/11/15
- Re: [Mldonkey-users] >2GB Bug again?, Andre Hinrichs, 2003/11/15
- Re: [Mldonkey-users] >2GB Bug again?, Martin, 2003/11/15