Takeshi Nakatani
fa2bcfc60d
Fixed a bug in multi head request parameter
2024-02-12 17:37:03 +09:00
Takeshi Nakatani
ed1d431a1f
Improved to output error details when bucket check fails
2024-02-12 17:36:47 +09:00
Takeshi Nakatani
67442cf054
Changed the level of messages by the get_base_exp function
2024-02-12 17:35:45 +09:00
Takeshi Nakatani
517574c40c
Fixed a bug in fdatasync(fsync)
2024-02-06 14:11:37 +09:00
Jason Carpenter
5e6f21a9ff
fix: ListBucket edge cases ( #2399 )
2024-02-03 13:24:40 +09:00
Takeshi Nakatani
54aa278df0
Fixed errors reported by cppcheck 2.13.0 ( #2400 )
2024-01-25 00:46:45 +09:00
Takeshi Nakatani
2f9fb74a42
Corrected list_bucket to search in stat cache during creating new file ( #2376 )
2024-01-24 22:10:14 +09:00
Andrew Gaul
b82632547c
Replace miscellaneous pointers with unique_ptr ( #2388 )
2023-12-23 13:06:41 +09:00
Andrew Gaul
e3b50ad3e1
Convert FdEntity to std::unique_ptr ( #2383 )
2023-12-07 23:56:35 +09:00
Andrew Gaul
b139507ae6
Simplify locking with C++11 atomics ( #2382 )
2023-11-27 01:12:49 +09:00
Andrew Gaul
f041812939
Revert "Call C++11 get_time and put_time ( #2375 )" ( #2381 )
...
This reverts commit 10a72bfd0f
. These
commit is incompatible with older CentOS 7 libstdc++.
2023-11-27 00:51:17 +09:00
Andrew Gaul
2b57e74330
Use std::unique_ptr in threadpoolman ( #2374 )
2023-11-26 01:49:17 +09:00
Andrew Gaul
b671fa7a9c
Pass std::unique_ptr by value ( #2373 )
...
This ensures that the parameter is moved.
2023-11-26 01:48:47 +09:00
Andrew Gaul
691669749e
Remove obsolete C++11 #ifdef ( #2377 )
2023-11-21 00:37:42 +09:00
Andrew Gaul
10a72bfd0f
Call C++11 get_time and put_time ( #2375 )
...
This removes workarounds and fixed-length buffers.
2023-11-20 18:45:27 +09:00
Andrew Gaul
68bbfee8ea
Address clang-tidy modernize-deprecated-headers ( #2370 )
2023-11-19 10:00:16 +09:00
Takeshi Nakatani
ec8caf64b8
Reverted the macos CI process(using macos-fuse-t)
2023-11-17 21:08:34 +09:00
Eryu Guan
bcacca6599
s3fs: make dir size not zero
...
Directory has size 0, which looks weired and may confuse users. So fake
dir size as 4k.
Signed-off-by: Eryu Guan <eguan@linux.alibaba.com>
2023-11-17 17:55:57 +09:00
Andrew Gaul
4845831f93
Convert some const to constexpr ( #2342 )
...
This guarantees that the function or value will resolve at compile-time.
2023-11-14 22:15:17 +09:00
Andrew Gaul
0cd73e406d
Address clang-tidy 17 warnings ( #2362 )
2023-11-12 11:48:08 +09:00
Takeshi Nakatani
e2ac9b45e8
Re-improved updating of temporary stat cache when new file
2023-11-11 07:45:32 +09:00
Takeshi Nakatani
f9d3941d9d
Fixed a bug in the re-upload part of Streamupload
2023-11-10 10:41:26 +09:00
Takeshi Nakatani
34c379babb
Improved updating of temporary stat cache while creating a file
2023-11-10 10:23:15 +09:00
Takeshi Nakatani
7b5111c955
Suppress some message levels on macos
2023-11-09 14:16:43 +09:00
AdamQQQ
3856637cd2
s3fs: add option free_space_ratio to control cache size ( #2351 )
...
* Try to cleanup cache directory when initing without enough disk space
Also optimize log messages to print detailed errors to the user.
Signed-off-by: Qinqi Qu <quqinqi@linux.alibaba.com>
* s3fs: add option free_space_ratio to control cache size
Since the ensure_diskfree option is not convenient enough, we have added
a new option "-o free_space_ratio" to control the space used by the s3fs
cache based on the current disk size.
The value of this option can be between 0 and 100. It will control the
size of the cache according to this ratio to ensure that the idle ratio
of the disk is greater than this value.
For example, when the value is 10 and the disk space is 50GB, it will
ensure that the disk will reserve at least 50GB * 10% = 5GB of remaining
space.
Signed-off-by: Qinqi Qu <quqinqi@linux.alibaba.com>
---------
Signed-off-by: Qinqi Qu <quqinqi@linux.alibaba.com>
2023-10-20 18:11:47 +09:00
Jan Stastny
2871975d1e
Set SSE headers when checking bucket
2023-10-18 21:45:47 +09:00
Takeshi Nakatani
5e5b4f0a49
Fixed ETag parsing at completing the Multipart upload part
2023-10-13 11:13:52 +09:00
Andrew Gaul
e5b15bed7d
Pass by value to trim functions ( #2345 )
...
These already force a copy so passing by value has the same
performance but is simpler. But this allows the compiler to perform
copy elision on temporaries and the caller to explicitly std::move in
others.
2023-10-12 22:21:33 +09:00
Takeshi Nakatani
2e4a6928c3
Changed argument name in ParallelMultipartUploadAll
2023-10-09 13:17:25 +09:00
Qinqi Qu
1aa77f6cda
s3fs_cred: print detailed error message when stat file fails
...
Signed-off-by: Qinqi Qu <quqinqi@linux.alibaba.com>
2023-10-09 13:11:47 +09:00
Takeshi Nakatani
d0c4b5c763
Fixed a bug in exclusive control of pagelist in FdEntity class
2023-09-26 21:26:17 +09:00
Andrew Gaul
361e10d09c
Add scope_guard for ad-hoc resource management ( #2313 )
...
References #2261 . Suggested by:
https://stackoverflow.com/questions/10270328/the-simplest-and-neatest-c11-scopeguard
2023-09-26 07:52:55 +09:00
Andrew Gaul
87b8bafaea
Address unknown pragma warning with GCC ( #2324 )
2023-09-26 01:16:14 +09:00
Andrew Gaul
1a703e623a
Remove volatile qualifiers deprecated in C++23 ( #2323 )
...
These are protected by upload_list_lock. Addresses warnings of the
form:
warning: ‘++’ expression of ‘volatile’-qualified type is deprecated
2023-09-26 00:15:05 +09:00
Andrew Gaul
61df7bf42c
Use std::unique_ptr for fclose ( #2318 )
...
References #2261 .
2023-09-25 23:55:11 +09:00
Andrew Gaul
c5fb42ff10
Use std::unique_ptr in libxml functions ( #2317 )
...
References #2261 .
2023-09-25 23:46:52 +09:00
Takeshi Nakatani
cbc33cd7ae
Fixed a bug upload boundary calculation in StreamUpload
2023-09-25 09:28:37 +09:00
Takeshi Nakatani
01b3caa38c
Fixed errors of cppcheck 2.12.0
2023-09-24 19:55:02 +09:00
Andrew Gaul
01189e99fc
Store mvnode in vector instead of manual linked list ( #2312 )
...
This simplifies code and avoids manual memory management. References #2261 .
2023-09-13 22:32:15 +09:00
Andrew Gaul
3d73d5a687
Delete unneeded constructors and assignment operators ( #2309 )
2023-09-06 23:52:10 +09:00
Andrew Gaul
fa3a472c6b
Remove several calls to free ( #2308 )
2023-09-06 23:50:33 +09:00
Andrew Gaul
4d5632912a
Initialize variable before use ( #2302 )
...
clang-analyzer found a path where this could be used without
initialization.
2023-09-06 23:32:49 +09:00
Takeshi Nakatani
a74034a012
Fixed a bug with setting the statvfs value
2023-09-05 09:03:11 -07:00
AdamQQQ
68c45ce791
s3fs: print unmounting hint when the mount point is stale ( #2295 )
...
When the error code returned by the stat information of the mount point
is ENOTCONN, print unmount command hint for user to fix.
Signed-off-by: Qinqi Qu <quqinqi@linux.alibaba.com>
2023-09-03 10:50:09 +09:00
Andrew Gaul
e8cb6d6d34
Abort after failed MPU ( #2298 )
...
This reclaims storage after a failed MPU which caused OutOfMemory
issues in #2291 .
2023-08-29 23:29:16 +09:00
Andrew Gaul
7bb9609827
Return errors from AutoFdEntity::Open ( #2296 )
...
Found via pjdfstest which creates a PATH_MAX path that should return
NAMETOOLONG.
2023-08-29 22:57:30 +09:00
Andrew Gaul
82107f4b6c
Skip is_uid_include_group when GID available ( #2292 )
...
This can avoid an expensive computation which is 20% of test runtime.
2023-08-27 15:24:33 +09:00
Eryu Guan
ee49ca4abf
s3fs: print fuse context in s3fs fuse operations ( #2274 )
...
Print fuse context like pid in fuse operations, so we know which process
is triggering this operation.
Signed-off-by: Eryu Guan <eguan@linux.alibaba.com>
2023-08-27 14:00:57 +09:00
Andrew Gaul
48548f0896
Remove unused functions ( #2289 )
2023-08-22 23:17:43 +09:00
Andrew Gaul
981e97ee76
Use default move constructor ( #2288 )
...
This is identical to the explicit one.
2023-08-22 23:14:09 +09:00