[vdr] Problem with very large filesystem
Klaus Schmidinger
Klaus.Schmidinger at cadsoft.de
Wed Aug 12 18:20:05 CEST 2009
On 12.08.2009 14:32, Marco Göbenich wrote:
> Hi!
>
> Tried to use
>
> DEFINES += -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE
> as added in vdr-1.7.4 make.config.template, but this causes other
> warnings/errors:
>
> recording.c: In constructor ‘cIndexFile::cIndexFile(const char*, bool)’:
> recording.c:1207: warning: format ‘%ld’ expects type ‘long int’, but
> argument 3 has type ‘__off64_t’
> ...
> tools.c: In member function ‘ssize_t cUnbufferedFile::Write(const void*,
> size_t)’:
> tools.c:1592: error: no matching function for call to ‘min(off_t&, long
> int)’
> tools.c:1611: error: no matching function for call to ‘min(long long
> int, long unsigned int)’
> make: *** [tools.o] Error 1
For version 1.6 it's probably best if you use the statfs64 function.
Can you please try whether version 1.7.8 works as it is?
Klaus
> Marco Göbenich schrieb:
>> Seems that
>>
>> if (statfs(Directory, &statFs) == 0)
>>
>> returns false.
>>
>> I changed
>>
>> struct statfs64 statFs;
>> if (statfs64(Directory, &statFs) == 0) {
>>
>> This works. Recordings are now stored. Is there a better fix for that.
More information about the vdr
mailing list