Bug#296870: cfengine2: can not handle files greater then 2GB
Andrew Stribblehill wrote: Quoting Bas van der Vlies [EMAIL PROTECTED] (2005-02-25 10:55:41 GMT): Package: cfengine2 Version: 2.1.11-1 Severity: important In our environment we tidy up directories after the completion of an job. This fails because we have files greater then 2GB. We get these error message: can't stat 8gr8_add.prededisp (/scratch/bws-data/200404792/8gr8/124/125/8gr8_add.prededisp) This can be solved by recompiling cfengine with LARGE_FILE_SUPPORT: -D_FILE_OFFSET_BITS=64 Can this be fixed? Sure. Can you send me a patch, just to show me precisely where to apply this -D flag? Thanks. Here it is: Using LFS For using LFS in user programs, the programs have to use the LFS API. This involves recompilation and changes of programs. The API is documented in the glibc manual (the libc info pages) which can be read with e.g. info libc. In a nutshell for using LFS you can choose either of the following: * Compile your programs with gcc -D_FILE_OFFSET_BITS=64. This forces all file access calls to use the 64 bit variants. Several types change also, e.g. off_t becomes off64_t. It's therefore important to always use the correct types and to not use e.g. int instead of off_t. For portability with other platforms you should use getconf LFS_CFLAGS which will return -D_FILE_OFFSET_BITS=64 on Linux platforms but might return something else on e.g. Solaris. For linking, you should use the link flags that are reported via getconf LFS_LDFLAGS. On Linux systems, you do not need special link flags. * Define _LARGEFILE_SOURCE and _LARGEFILE64_SOURCE. With these defines you can use the LFS functions like open64 directly. * Use the O_LARGEFILE flag with open to operate on large files. And here s an link to the documentation: http://www.suse.de/~aj/linux_lfs.html -- -- * * * Bas van der Vlies e-mail: [EMAIL PROTECTED] * * SARA - Academic Computing Servicesphone: +31 20 592 8012 * * Kruislaan 415 fax:+31 20 6683167* * 1098 SJ Amsterdam * * * -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Bug#296870: cfengine2: can not handle files greater then 2GB
Quoting Bas van der Vlies [EMAIL PROTECTED] (2005-02-25 10:55:41 GMT): Package: cfengine2 Version: 2.1.11-1 Severity: important In our environment we tidy up directories after the completion of an job. This fails because we have files greater then 2GB. We get these error message: can't stat 8gr8_add.prededisp (/scratch/bws-data/200404792/8gr8/124/125/8gr8_add.prededisp) This can be solved by recompiling cfengine with LARGE_FILE_SUPPORT: -D_FILE_OFFSET_BITS=64 Can this be fixed? Sure. Can you send me a patch, just to show me precisely where to apply this -D flag? Thanks. -- Andrew Stribblehill [EMAIL PROTECTED] Systems programmer, IT Service, University of Durham, England -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Bug#296870: cfengine2: can not handle files greater then 2GB
Package: cfengine2 Version: 2.1.11-1 Severity: important In our environment we tidy up directories after the completion of an job. This fails because we have files greater then 2GB. We get these error message: can't stat 8gr8_add.prededisp (/scratch/bws-data/200404792/8gr8/124/125/8gr8_add.prededisp) This can be solved by recompiling cfengine with LARGE_FILE_SUPPORT: -D_FILE_OFFSET_BITS=64 Can this be fixed? -- System Information: Debian Release: 3.1 APT prefers testing APT policy: (500, 'testing') Architecture: i386 (i686) Kernel: Linux 2.6.8.1-dell9 Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968) Versions of packages cfengine2 depends on: ii debconf 1.4.30.11Debian configuration management sy ii debianutils 2.8.4Miscellaneous utilities specific t ii libc6 2.3.2.ds1-20 GNU C Library: Shared libraries an ii libdb4.24.2.52-18Berkeley v4.2 Database Libraries [ ii libssl0.9.7 0.9.7e-2 SSL shared libraries ii perl5.8.4-6 Larry Wall's Practical Extraction -- debconf information: cfengine2/run_cfservd: true cfengine2/run_cfexecd: true cfengine2/run_cfenvd: true -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]