Q: long long int, ext3 file sizes > 2GB

From: James Lehman (james[remove)
Date: 11/27/04


Date: Sat, 27 Nov 2004 12:33:36 -0500

Hello everyone.

As hardrives get bigger and cheaper,
issues of huge data storage come up.

I did a test in Red Hat 9.0, and sure enough the implementation
of ext3 on this system supports files that are much larger than 2GB.

dd if=/dev/zero of=zero_6GB bs=1048576 count=6144

produces a file that is 6GB.

-rw-r--r-- 1 root root 6442450944 Nov 27 03:46 zero_6GB

My questions are about how to deal with this in C/C++.

When I try to open the file like this:

file_in.open(name, ios::in | ios::binary);

it fails to open.

Assuming I can get the file open some how, what about file size?

Can I get a file size that is represented as a long long int?

If there is a collected set of information about this subject
on the Web, I have not been able to find it.

Thanks very much for your time.

Have a great day! James. :o)



Relevant Pages

  • Re: Q: long long int, ext3 file sizes > 2GB
    ... > As hardrives get bigger and cheaper, ... > issues of huge data storage come up. ... I don't care. ...
    (comp.os.linux.development.system)
  • Re: OT Time for a different car then
    ... They're a bit bigger than your average small car, ... He told me he was going to advertise it for 3750 but I think he'll let ... How much cheaper, I can't say but I've bought enough bits of RX-7 ...
    (uk.rec.motorcycles)
  • Re: OT Time for a different car then
    ... They're a bit bigger than your average small car, ... normally not a fan of bodykits in general), decent wheels with decent ... He told me he was going to advertise it for 3750 but I think he'll let ... How much cheaper, I can't say but I've bought enough bits of RX-7 ...
    (uk.rec.motorcycles)
  • Re: Filmers Discussion Thread
    ... try looking on ebay their cheaper there...it fits 37mm lens, ... bigger than that you will need a step up or step down ring ...
    (rec.sport.unicycling)
  • Re: Printing photos
    ... > Someone elsewhere suggested photobox.com - cheaper for the smaller ... more more the bigger ones. ... Although they do do matt which is ... Prev by Date: ...
    (uk.comp.sys.mac)