Gentoo Archives: gentoo-dev

From: James Holden <gentoo@×××××××××××.net>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] Large File Support
Date: Mon, 09 Aug 2004 19:21:38
Message-Id: 4117CEBA.9010509@jamesholden.net
In Reply to: Re: [gentoo-dev] Large File Support by Jason Cooper
1 -----BEGIN PGP SIGNED MESSAGE-----
2 Hash: SHA1
3
4 Jason Cooper wrote:
5 | James Holden (gentoo@×××××××××××.net) scribbled:
6 |
7 |>Jason Cooper wrote:
8 |>| James Holden (gentoo@×××××××××××.net) scribbled:
9 |>|
10 |>|>I'm having some problems with large file support on my Sparc64
11 Gentoo box.
12 |>|>
13 |>|>I have some >2GB DVD images on my box, which I copied off my other
14 |>|>machine (running IRIX) over NFS so I know kernel support for large files
15 |>|>is working.
16 |>|>
17 |>|>I'm trying to get the Debian testing DVD images using net-misc/jigdo,
18 |>|>but when it creates the temporary image file it wimps out at 2GB,
19 |>|>complaining about "File size limit exceeded".
20 |>|>
21 |>|>I've rebuilt net-misc/jigdo with -D_FILE_OFFSET_BITS=64
22 |>|>- -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE in CFLAGS, but I still
23 get the
24 |>|>error.
25 |>|
26 |>|
27 |>| Did you check in the source to see that those flags actually change
28 |>| something, eg fopen() calls should add the O_LARGEFILE flag...
29 |>|
30 |>| Do other programs work with files >2GB?
31 |>
32 |>Well, 'cp' worked, when I grabbed another very large (4.3GB) .iso off
33 |>another box via NFS. 'dvdrecord' works too because I can burn them to
34 DVD-R.
35 |>
36 |>Having checked the source, there's a couple of lines that reference a
37 |>flag called O_LARGEFILE, but their meaning is a little unclear to my
38 |>non-C++ hacker self.
39 |>
40 |>I'll try setting -DO_LARGEFILE and see what happens.
41 |
42 |
43 | I don't think that'll work. O_LARGEFILE is typically used as a flag
44 | within fopen(), eg:
45 |
46 | fd = fopen("movie.mpg", O_RDONLY|O_LARGEFILE);
47 |
48 | There is the very real possibility that the program doesn't have the
49 | capability to read large files. In which case, a patch is in order.
50 |
51 | Cooper.
52
53 Hmmm... I just built it on IRIX from the same sources with gcc (as
54 opposed to MIPSPro, IRIXs own cc), and it works perfectly. It leads me
55 to think that something its linking against is the problem. Dunno what
56 though.
57
58 James
59
60
61 - --
62 James Andrew Holden, Leeds, UK (james at jamesholden dot net)
63 GPG Key: 1024D/8358863A *Please encrypt mail where possible!*
64 Fingerprint: 32C9 A76F 3CFE A06C 1B00 5AAB 9877 4742 8358 863A
65 jamesholden.net ICQ: 11290827 >Buy Linux CDs from fastdiscs.com<
66 -----BEGIN PGP SIGNATURE-----
67 Version: GnuPG v1.2.3 (GNU/Linux)
68 Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
69
70 iD8DBQFBF866mHdHQoNYhjoRAgREAKCwV58YkhrEMrW/AKJhFzbDal8YywCeKgjI
71 CUlbmCfK9C1SNfFnR2kkEy4=
72 =GN91
73 -----END PGP SIGNATURE-----
74
75 --
76 gentoo-dev@g.o mailing list

Replies

Subject Author
Re: [gentoo-dev] Large File Support Jason Cooper <gentoo@××××××××××.net>