Messages in this thread | | | Date | Wed, 15 Sep 1999 15:17:47 -0400 (EDT) | From | "Richard B. Johnson" <> | Subject | Re: ext2 file sizes |
| |
On Wed, 15 Sep 1999, Blankenship, Keith wrote:
> I am having some difficulty with the ext2 file systems. I need to generate a > file that will be > 5 Gigabytes, and there appears to be a file size cap at > approximately 2 Gig. I am running what appears to be a version 2.0.36 > Kernel. Is there anything I can adjust, or do to increase the maximum file > size? Or is there a newer kernel that may work? >
Note that on a 32-bit machine, toff_t, used as fpos_t, for file offsets, i.e., lseek, is unsigned 32 bits. You will not be able to access such a file on a 32-bit machine. There has been some work on changing this to 'long long' (__kernel_loff_t, in ../asm/posix_types.h although you may need a new 'C' runtime library to take advantage of this.
What on earth are you doing with a single _file_ of that size? If you need a gob of storage for data acquisition, you might be better off with a dedicated raw device. Since you access it in blocks, rather than bytes, you won't have a size limitation for a few more years.
Cheers, Dick Johnson **** FILE SYSTEM WAS MODIFIED **** Penguin : Linux version 2.3.13 on an i686 machine (400.59 BogoMips). Warning : It's hard to remain at the trailing edge of technology.
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/
| |