From 1122e9fa56678d15516807c4b63247cc5ccfaf7c Mon Sep 17 00:00:00 2001 From: csoler Date: Mon, 24 May 2010 19:18:57 +0000 Subject: [PATCH] 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 --- libretroshare/src/util/rsdiscspace.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libretroshare/src/util/rsdiscspace.cc b/libretroshare/src/util/rsdiscspace.cc index 8a5746e6e..49056b925 100644 --- a/libretroshare/src/util/rsdiscspace.cc +++ b/libretroshare/src/util/rsdiscspace.cc @@ -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;