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
Andrew Gaul
a568aa70fd
Replace uses of emplace with operator=(&&) ( #2287 )
...
emplace does not overwrite the value if the key already exists. C++17 has
insert_or_assign but C++11 only has operator= which invokes the default
constructor. Follows on to 6781ef5bd1
.
2023-08-22 23:12:12 +09:00
Takeshi Nakatani
218adcb29b
Fixed errors in cache.cpp from cppcheck 2.11.1 ( #2286 )
2023-08-20 19:00:20 +09:00
Andrew Gaul
6c55bcfdd8
Own values in add_header ( #2285 )
...
Also fix up indentation.
2023-08-20 18:59:18 +09:00
Andrew Gaul
8d04ee3e01
Own values in stat_cache and symlink_cache ( #2284 )
...
This removes an unnecessary use of unique_ptr.
2023-08-20 12:10:47 +09:00
Takeshi Nakatani
6781ef5bd1
Reverted to direct array access instead of std::map emplace
2023-08-20 09:44:38 +09:00
Andrew Gaul
7e94b64ae7
Use unique_ptr in SSL functions ( #2282 )
...
References #2261 .
2023-08-19 23:29:00 +09:00
Andrew Gaul
50f6c38c84
Replace xattr_value with std::string ( #2280 )
2023-08-19 11:12:43 +09:00
Takeshi Nakatani
280ed5d706
Additional fix for #2276(Convert BodyData to std::string) ( #2278 )
2023-08-18 00:35:50 +09:00
Andrew Gaul
2518ff3568
Convert BodyData to std::string ( #2276 )
...
This is simpler and avoids some copies.
2023-08-17 22:49:41 +09:00
Andrew Gaul
c65ce8a42c
Add clang-tidy to CI ( #2270 )
2023-08-17 22:42:11 +09:00
Andrew Gaul
b2bb12fd2c
Remove unneeded explicit std::string constructors ( #2273 )
...
std::string(const char*) implicitly constructs these. The remaining call sites
requires string literals from C++14.
2023-08-17 22:12:28 +09:00
Andrew Gaul
7f30353fb9
Return std::unique_ptr from S3fsCurl callbacks ( #2272 )
...
References #2261 .
2023-08-17 22:08:56 +09:00
Andrew Gaul
67e6b9e495
Simplify xattr_value with owned values ( #2262 )
...
References #2261 .
2023-08-15 22:54:46 +09:00
Andrew Gaul
6823c5a7ec
Enable clang-tidy cppcoreguidelines ( #2269 )
2023-08-15 22:12:33 +09:00
Andrew Gaul
d1272d296a
Tighten up CLI argument handling ( #2268 )
...
This ensures that each option is only handled once.
2023-08-15 21:45:38 +09:00
Andrew Gaul
d120e54284
Improve illegal bucket name error message ( #2263 )
...
This may help users debug situations like:
https://stackoverflow.com/questions/76359564/why-does-mounting-s3fs-bucket-on-centos-7-using-fstab-fail-but-mount-a-works
2023-08-15 21:31:05 +09:00
Andrew Gaul
e157d811cb
Use std::string::compare and operator== where possible ( #2256 )
2023-08-15 21:22:36 +09:00
Andrew Gaul
56a4e67009
Replace more raw pointers with std::unique_ptr ( #2255 )
2023-08-14 00:03:10 +09:00
Takeshi Nakatani
5b93765802
Fixed a warning for compiling C/C++ codes
2023-08-13 20:49:39 +09:00
Takeshi Nakatani
acea1d33f9
Fixed string test for s3fs_base64
2023-08-13 20:48:38 +09:00
Andrew Gaul
528a61718d
Convert manual memory allocations to std::unique_ptr ( #2253 )
2023-08-11 23:26:07 +09:00
Andrew Gaul
c5a75a1fb2
Delete copy constructors and assignment operators ( #2257 )
...
One of these was buggy and others had the wrong parameters and return
types.
2023-08-11 13:12:03 +09:00
Andrew Gaul
3790a0f8b4
Calculate MD5 without using a temporary file ( #2252 )
...
This mirrors the SHA256 code.
2023-08-07 00:17:15 +09:00
Andrew Gaul
779afe5d62
Make help more consistent ( #2251 )
2023-08-06 22:25:10 +09:00
Andrew Gaul
26b5658d70
Wrap ps3fscred with std::unique_ptr ( #2250 )
...
This removes many manual memory deallocations.
2023-08-06 22:23:25 +09:00