Q: long long int, ext3 file sizes > 2GB
From: James Lehman (james[remove)
Date: 11/27/04
- Next message: Fabian Lim: "Robotic Telescope System in Linux"
- Previous message: Lady Chatterly: "Re: advanced Makefile tutorial"
- Next in thread: Kirth Gersen: "Re: Q: long long int, ext3 file sizes > 2GB"
- Reply: Kirth Gersen: "Re: Q: long long int, ext3 file sizes > 2GB"
- Reply: Erik de Castro Lopo: "Re: Q: long long int, ext3 file sizes > 2GB"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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)
- Next message: Fabian Lim: "Robotic Telescope System in Linux"
- Previous message: Lady Chatterly: "Re: advanced Makefile tutorial"
- Next in thread: Kirth Gersen: "Re: Q: long long int, ext3 file sizes > 2GB"
- Reply: Kirth Gersen: "Re: Q: long long int, ext3 file sizes > 2GB"
- Reply: Erik de Castro Lopo: "Re: Q: long long int, ext3 file sizes > 2GB"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|