1 |
James Holden (gentoo@×××××××××××.net) scribbled: |
2 |
> Jason Cooper wrote: |
3 |
> | James Holden (gentoo@×××××××××××.net) scribbled: |
4 |
> | |
5 |
> |>I'm having some problems with large file support on my Sparc64 Gentoo box. |
6 |
> |> |
7 |
> |>I have some >2GB DVD images on my box, which I copied off my other |
8 |
> |>machine (running IRIX) over NFS so I know kernel support for large files |
9 |
> |>is working. |
10 |
> |> |
11 |
> |>I'm trying to get the Debian testing DVD images using net-misc/jigdo, |
12 |
> |>but when it creates the temporary image file it wimps out at 2GB, |
13 |
> |>complaining about "File size limit exceeded". |
14 |
> |> |
15 |
> |>I've rebuilt net-misc/jigdo with -D_FILE_OFFSET_BITS=64 |
16 |
> |>- -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE in CFLAGS, but I still get the |
17 |
> |>error. |
18 |
> | |
19 |
> | |
20 |
> | Did you check in the source to see that those flags actually change |
21 |
> | something, eg fopen() calls should add the O_LARGEFILE flag... |
22 |
> | |
23 |
> | Do other programs work with files >2GB? |
24 |
> |
25 |
> Well, 'cp' worked, when I grabbed another very large (4.3GB) .iso off |
26 |
> another box via NFS. 'dvdrecord' works too because I can burn them to DVD-R. |
27 |
> |
28 |
> Having checked the source, there's a couple of lines that reference a |
29 |
> flag called O_LARGEFILE, but their meaning is a little unclear to my |
30 |
> non-C++ hacker self. |
31 |
> |
32 |
> I'll try setting -DO_LARGEFILE and see what happens. |
33 |
|
34 |
I don't think that'll work. O_LARGEFILE is typically used as a flag |
35 |
within fopen(), eg: |
36 |
|
37 |
fd = fopen("movie.mpg", O_RDONLY|O_LARGEFILE); |
38 |
|
39 |
There is the very real possibility that the program doesn't have the |
40 |
capability to read large files. In which case, a patch is in order. |
41 |
|
42 |
Cooper. |
43 |
|
44 |
-- |
45 |
gentoo-dev@g.o mailing list |