s3fs-fuse/src
Takeshi Nakatani 839a33de49
Fixed not to call Flush even if the file size is increased (#1887)
Changed s3fs_truncate function.
This change reduces the number of file uploads if the file size is changed.

On macOS, I have found that the truncate call when "size=0" cannot reflect the file size.(This reason is not understood...)
To avoid this, only when "size=0", the flush method is called as before.

Other than that, I found a bug in FdEntity::Open() and fixed it.

Fixes #1875.
2022-02-15 21:29:07 +09:00
..
addhead.cpp Prefer std::string::empty over length == 0 (#1679) 2021-06-13 20:03:10 +09:00
addhead.h Fix clang-tidy warnings 2020-09-21 07:03:42 +09:00
autolock.cpp Fix wrong function name in log message (#1774) 2021-10-10 11:08:32 +09:00
autolock.h Source file division and set 4 spaces and cleanup 2020-08-26 17:43:50 +09:00
bodydata.cpp Fix a few nits (#1645) 2021-05-06 19:40:35 +09:00
bodydata.h Fix clang-tidy warnings 2020-09-21 07:03:42 +09:00
cache.cpp Fixed the fault tolerance when time stamp getting fails 2022-01-30 18:31:36 +09:00
cache.h Additional bug fixing for not creating zero-byte object 2021-05-09 17:33:53 +09:00
common_auth.cpp Add dedicated upper- and lower-case hex functions (#1734) 2021-08-04 07:28:51 +09:00
common.h Added S3fsCred class and moved Credential related processing in it 2022-02-13 21:38:30 +09:00
curl_handlerpool.cpp Remove uses of implicit namespace std 2020-09-13 11:57:20 +09:00
curl_handlerpool.h Source file division and set 4 spaces and cleanup 2020-08-26 17:43:50 +09:00
curl_multi.cpp Improve warning for terminated threads 2021-06-18 07:54:38 +09:00
curl_multi.h Fix clang-tidy warnings 2020-09-21 07:03:42 +09:00
curl_util.cpp Added S3fsCred class and moved Credential related processing in it 2022-02-13 21:38:30 +09:00
curl_util.h Fixed osx mistype declaration and typo warnings 2021-02-13 12:04:35 +09:00
curl.cpp Added S3fsCred class and moved Credential related processing in it 2022-02-13 21:38:30 +09:00
curl.h Added S3fsCred class and moved Credential related processing in it 2022-02-13 21:38:30 +09:00
fdcache_auto.cpp Explicitly specify lock type (#1701) 2021-06-27 15:15:48 +09:00
fdcache_auto.h Explicitly specify lock type (#1701) 2021-06-27 15:15:48 +09:00
fdcache_entity.cpp Fixed not to call Flush even if the file size is increased (#1887) 2022-02-15 21:29:07 +09:00
fdcache_entity.h Fixed wrong stat of cache after new creation file 2021-10-17 16:10:14 +09:00
fdcache_fdinfo.cpp fix misuse of IsUploading (#1747) 2021-08-29 23:41:02 +09:00
fdcache_fdinfo.h Changed etaglist_t from string list to new structure etagpairs list 2021-08-16 09:27:12 +09:00
fdcache_page.cpp Fixed wrong stat of cache after new creation file 2021-10-17 16:10:14 +09:00
fdcache_page.h Add a partial page_list unit test (#1735) 2021-08-04 07:36:32 +09:00
fdcache_pseudofd.cpp Introduced pseudo fd and separated fd for each file opening 2021-06-04 22:42:58 +09:00
fdcache_pseudofd.h Introduced pseudo fd and separated fd for each file opening 2021-06-04 22:42:58 +09:00
fdcache_stat.cpp Added S3fsCred class and moved Credential related processing in it 2022-02-13 21:38:30 +09:00
fdcache_stat.h Fix clang-tidy warnings 2020-09-21 07:03:42 +09:00
fdcache_untreated.cpp Added UntreatedParts class instead of untreated upload info members in PseudoFdInfo 2021-07-12 21:45:29 +09:00
fdcache_untreated.h Add a partial page_list unit test (#1735) 2021-08-04 07:36:32 +09:00
fdcache.cpp Fixed not to call Flush even if the file size is increased (#1887) 2022-02-15 21:29:07 +09:00
fdcache.h Added fake_diskfree option to deceive free disk space for test 2021-08-02 11:04:42 +09:00
gnutls_auth.cpp Fix implicit narrowing conversions (#1672) 2021-06-13 12:50:07 +09:00
Makefile.am Added S3fsCred class and moved Credential related processing in it 2022-02-13 21:38:30 +09:00
metaheader.cpp Move strptime polyfill to string_util 2022-01-23 21:49:51 +09:00
metaheader.h Preserve sub-second time precision (#1624) 2021-04-18 13:11:12 +09:00
mpu_util.cpp Remove uses of implicit namespace std 2020-09-13 11:57:20 +09:00
mpu_util.h Source file division and set 4 spaces and cleanup 2020-08-26 17:43:50 +09:00
mvnode.cpp Address cppcheck 2.5 warnings (#1720) 2021-07-14 22:18:09 +09:00
mvnode.h Source file division and set 4 spaces and cleanup 2020-08-26 17:43:50 +09:00
nss_auth.cpp Fix implicit narrowing conversions (#1672) 2021-06-13 12:50:07 +09:00
openssl_auth.cpp Fix implicit narrowing conversions (#1672) 2021-06-13 12:50:07 +09:00
psemaphore.h Source file division and set 4 spaces and cleanup 2020-08-26 17:43:50 +09:00
s3fs_auth.h Fix implicit narrowing conversions (#1672) 2021-06-13 12:50:07 +09:00
s3fs_cred.cpp Added S3fsCred class and moved Credential related processing in it 2022-02-13 21:38:30 +09:00
s3fs_cred.h Added S3fsCred class and moved Credential related processing in it 2022-02-13 21:38:30 +09:00
s3fs_global.cpp Added S3fsCred class and moved Credential related processing in it 2022-02-13 21:38:30 +09:00
s3fs_help.cpp Fix typo in -o enable_unsigned_payload 2022-01-12 22:50:49 +09:00
s3fs_help.h Output version and command parameters at startup 2021-03-06 19:11:57 +09:00
s3fs_logger.cpp Convert S3FS_LOW_LOGPRN from a macro to a function (#1869) 2022-01-23 23:10:09 +09:00
s3fs_logger.h Convert S3FS_LOW_LOGPRN from a macro to a function (#1869) 2022-01-23 23:10:09 +09:00
s3fs_util.cpp Output version and command parameters at startup 2021-03-06 19:11:57 +09:00
s3fs_util.h Handle UTIME_NOW and UTIME_OMIT special values (#1868) 2022-01-29 11:35:37 +09:00
s3fs_xml.cpp Fixed some Github Actions errors. (#1886) 2022-02-13 14:23:35 +09:00
s3fs_xml.h Added exclusive control of statc variables in s3fs xml parser 2021-10-27 08:18:19 +09:00
s3fs.cpp Fixed not to call Flush even if the file size is increased (#1887) 2022-02-15 21:29:07 +09:00
s3fs.h Source file division and set 4 spaces and cleanup 2020-08-26 17:43:50 +09:00
s3objlist.cpp Prefer std::string::empty over length == 0 (#1679) 2021-06-13 20:03:10 +09:00
s3objlist.h Fix clang-tidy warnings 2020-09-21 07:03:42 +09:00
sighandlers.cpp Added logfile option for non-syslog logging 2020-10-19 20:10:19 +09:00
sighandlers.h Added logfile option for non-syslog logging 2020-10-19 20:10:19 +09:00
string_util.cpp Move strptime polyfill to string_util 2022-01-23 21:49:51 +09:00
string_util.h Move strptime polyfill to string_util 2022-01-23 21:49:51 +09:00
test_curl_util.cpp Added S3fsCred class and moved Credential related processing in it 2022-02-13 21:38:30 +09:00
test_page_list.cpp Add a partial page_list unit test (#1735) 2021-08-04 07:36:32 +09:00
test_string_util.cpp Require explicit length in s3fs_decode64 (#1755) 2021-08-31 09:22:10 +09:00
test_util.h Do not NUL terminate base64 decoded output (#1752) 2021-08-31 00:15:47 +09:00
types.h Fix 32-bit compilation issues (#1757) 2021-08-31 19:36:02 +09:00