mirror of
https://github.com/s3fs-fuse/s3fs-fuse.git
synced 2024-11-10 23:00:57 +00:00
20da0e4dd3
There were multiple problems with the FdManager::GetFreeDiskSpace() function on macOS: 1) When calling statvfs(), f_frsize should be used instead of f_bsize when converting available blocks to bytes. This was causing the free space calculation to be incorrect. 2) On macOS, fsblkcnt_t is a 32-bit integer. Thus, when calculating available disk space, there were frequently overflows. This caused s3fs to incorrectly determine that the cache location was out of space in the middle of a transfer which caused uploads to fail. Changing this to a uint64_t resolves the problem. |
||
---|---|---|
.. | ||
addhead.cpp | ||
addhead.h | ||
cache.cpp | ||
cache.h | ||
common_auth.cpp | ||
common.h | ||
curl.cpp | ||
curl.h | ||
fdcache.cpp | ||
fdcache.h | ||
gnutls_auth.cpp | ||
Makefile.am | ||
nss_auth.cpp | ||
openssl_auth.cpp | ||
s3fs_auth.h | ||
s3fs_util.cpp | ||
s3fs_util.h | ||
s3fs.cpp | ||
s3fs.h | ||
string_util.cpp | ||
string_util.h | ||
test_string_util.cpp | ||
test_util.h |