Large Files

In order to be able to work with large (>2Gb) files under Linux any program needs the following:
  1. The Linux kernel 2.4.x.
  2. The C system library glibc 2.x.

In principle, having the above kernel and glibc should allow C programs to work with LFS.

Before recompiling any C programs make sure that:
  1. the program #includes <stdio.h> and <unistd.h>
  2. any variables used to hold the file offset values are of the type off_t or fpos_t (neither int nor long)
  3. the program uses fseeko and ftello instead of fseek and ftell
  4. the program is compiled with gcc -D_GNU_SOURCE -DLARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64

For example the default unzip program supplied with Red Hat 3 & 4 and CentOS 3 & 4 do not seem to be compiled with these flags

HowToUnzipLargeFiles


REFERRERS
FileSystem
TarUnzip
Valid XHTML :: Valid CSS: :: Powered by WikkaWiki