Re: Filesize limitation

Jim Nance (jlnance@avanticorp.com)
Tue, 11 Nov 1997 07:30:35 -0500


-----Forwarded message from "Albert D. Cahalan" <acahalan@cs.uml.edu>-----
>
> http://www.cs.uml.edu/~acahalan/ext2.gif

Thanks for the graphs. They were interesting.

> I think the 64-bit API comes first. That would get 4 GB files
> without much (any?) change to the main ext2 code.

I just wanted to point out that the Alpha and Ultrasparc should be
able to use large files w/o any API changes. size_t and off_t should
already be longs on these platforms. The API is only needed for 32 bit
machines.

> I can't test any code; this is just very interesting for me.
> If only I could buy an 11 TB disk cluster from EMC... :-)

dont forget you can:

int fd = open("/tmp/xyz", O_WONLY, 0600);
write(fd, "x", 1);
lseek(fd, 1024*1024*2, SEEK_CUR);
write(fd, "x", 1);

should create you a file slightly over 2G that takes very little disk space.

-----End of forwarded message-----

-- 
----------------------------------------------------------------------------
Jim Nance                                                 Avant! Corporation
(919) 941-6655    Do you have sweet iced tea?       jim_nance@avanticorp.com
                  No, but theres sugar on the table.