fixed disk space estimation for large file systems

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@2992 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
csoler 2010-05-24 19:18:57 +00:00
parent 7db10d1f6f
commit 1122e9fa56

View File

@ -82,9 +82,9 @@ bool RsDiscSpace::crossSystemDiskStats(const char *file, uint32_t& free_blocks,
free_blocks = dwFreeClusters ;
block_size = dwSectorPerCluster * dwBytesPerSector ;
#else
struct statvfs buf;
struct statvfs64 buf;
if (0 != statvfs (file, &buf))
if (0 != statvfs64 (file, &buf))
{
std::cerr << "Size estimate failed for file " << file << std::endl ;
return false;