Commit Graph

335 Commits

Author SHA1 Message Date
97659c41f2 Fixed bugs in removing xattrs func and and test for it 2025-06-27 03:16:32 +09:00
b624596685 Simplify temporary file creation via mktemp (#2691)
Previously this used /dev/urandom which does not guarantee uniqueness
and sometimes blocked on macOS.  References #2690.
2025-06-26 19:05:16 +09:00
5bc46ff1ba Removed the RUN_DIR variable which is no longer global 2025-06-09 21:10:42 +09:00
47231fc5fb Disable new S3 checksums for S3Proxy compatibility (#2686)
References aws/aws-cli#9214.
2025-06-09 19:31:46 +09:00
63402bb556 Fixed the random string generation in test script for macos 2025-06-08 22:03:56 +09:00
f2542f22fe Require C++14 (#2596)
This only has some minor additions of std::make_unique, digits
separators, std::string literals, and more flexible constexpr.
References #2469.
2025-05-18 12:34:53 +09:00
3421025074 Use region instead of endpoint for configuration (#2669)
This is more consistent with the AWS docs.  Generally endpoint refers
to an HTTP URL not just the region.  Fixes #2668.
2025-05-18 10:49:35 +09:00
43f49b15e8 Reduce use of awk in tests (#2662) 2025-04-20 10:03:07 +09:00
22ca6ba6ee Updated CI test result for macos about updating xattr 2025-04-03 23:48:48 +09:00
dc92b1b087 Remove unneeded uses of std::map::operator[] (#2642)
These unintentionally mutate the map.  Script suggested by @danmar.
2025-02-09 11:21:44 +09:00
dd4f1395ca Run passing tests from pjdfstest (#1882)
This downloads a tarball by hash instead of using a submodule.
References #1589.
2025-01-19 10:26:40 +09:00
cd41bddd1e Upgrade to S3Proxy 2.5.0 (#2627)
Release notes:

https://github.com/gaul/s3proxy/releases/tag/s3proxy-2.5.0
2025-01-03 15:01:15 +09:00
65e4aef2a1 Prefer C++-style casts over C-style casts (#2599)
The former are easier to identify.  Found via clang-tidy.

Co-authored-by: Takeshi Nakatani <ggtakec@gmail.com>
2024-12-01 10:29:08 +09:00
956e8c5750 Added new class for curl share handle
Added new class for curl share handle.
And, paired the curl handle(S3fsCurl) with the worker thread.
Changed that each thread has its own SSL session cache to prevent data
races.
So OpenSSL suppression for ThreadSanitizer is no longer necessary, so
reverted it.
2024-11-28 03:40:40 +09:00
143284b2f3 Upgrade to S3Proxy 2.4.1 (#2433)
This transitions to the transient-nio2 storage backend which should
address a race condition with getBlob and be easier to work with in
the future.  Release notes:

https://github.com/gaul/s3proxy/releases/tag/s3proxy-2.4.1
https://github.com/gaul/s3proxy/releases/tag/s3proxy-2.4.0
https://github.com/gaul/s3proxy/releases/tag/s3proxy-2.3.0
https://github.com/gaul/s3proxy/releases/tag/s3proxy-2.2.0
https://github.com/gaul/s3proxy/releases/tag/s3proxy-2.1.0
2024-11-24 22:27:24 +09:00
17d0970244 Changed the macOS Github Actions runner image to macos-13
Changed the macos Github Actions runner image to macos-13, and
avoided extended attribute error when copying with macos-fuse-t.
2024-11-07 16:51:53 +09:00
ef6c213471 Bypassed test_extended_attributes test on MacOS 2024-11-03 08:56:48 +09:00
d35b5a8905 Add OpenSSL suppression for ThreadSanitizer (#2559) 2024-10-22 19:52:27 +09:00
9c4fcbd050 Use std::max instead of conditional (#2562)
Found via clang-tidy.
2024-10-22 19:22:39 +09:00
141d74f187 Use auto for iterator variable types (#2554)
This touches a few other long type names.  Applied via clang-tidy
-fix.
2024-10-18 21:57:52 +09:00
473f9df65a FreeBSD compilation fixes
Closes #2517.
2024-10-16 13:46:12 -07:00
1d3ab76cc4 Ensure that test checks data length (#2546)
wc has an optimization that can use metadata when stdin is set to a
file.  Also fix up logging.
2024-10-14 18:31:37 +09:00
743c86e506 Fix issues discovered by Coverity (#2535) 2024-10-08 08:07:13 +09:00
b283ab291a Modified and bypassed test_multipart_mix on MacOS with nocopyapi 2024-09-29 13:58:46 +09:00
c24015ae17 Modified and bypassed some MacOS tests 2024-09-29 09:17:11 +09:00
6faaff10ee Fixed hardlink test for macos 2024-09-27 00:52:07 +09:00
fa807a56fb Fix typos (#2473) 2024-06-23 15:33:46 +09:00
ebae5a302f Prefer std::string::clear where possible (#2467)
This is somewhat more clear and is declared noexcept.
2024-06-10 23:36:49 +09:00
2c532e8b79 Fixed error reports of failure in cppcheck 2.14.0 2024-05-28 07:29:03 +09:00
517574c40c Fixed a bug in fdatasync(fsync) 2024-02-06 14:11:37 +09:00
68bbfee8ea Address clang-tidy modernize-deprecated-headers (#2370) 2023-11-19 10:00:16 +09:00
ec8caf64b8 Reverted the macos CI process(using macos-fuse-t) 2023-11-17 21:08:34 +09:00
3f6e8a8707 Fixed indent in integration-test-main.sh 2023-11-15 23:15:40 +09:00
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
b15ed13807 Force disk free space recovery in test(for only macos) 2023-11-10 15:51:22 +09:00
d5dd17644d Add a helper script to compile all targets (#2337)
This is useful to compile different SSL libraries and 32-bit targets.
2023-10-15 11:54:52 +09:00
95cfbe30ed Add error checking to test_concurrent_writes (#2299)
This reveals a situation where s3fs triggers an unexpected
EntityTooSmall error.
2023-09-26 07:32:02 +09:00
ffff26e165 Add stat helper for user and group (#2320) 2023-09-26 00:04:24 +09:00
cbc33cd7ae Fixed a bug upload boundary calculation in StreamUpload 2023-09-25 09:28:37 +09:00
645c10a3c3 Fixed test_not_existed_dir_obj test condition 2023-09-25 08:16:32 +09:00
54293a66b3 Simplify the determination of the --cached option of the stat 2023-09-25 08:08:58 +09:00
64642e1d1b Do not cache stat attributes (#2319)
This is a workaround for CI failures.
2023-09-24 18:32:07 +09:00
a83f4a48d0 Add extra logging to debug test (#2316) 2023-09-15 21:50:01 +09:00
99d3e68d59 Revert ls change (#2315)
echo does not split the words on newlines.
2023-09-15 21:48:04 +09:00
f493cb5846 Remove unnecessary uses of ls (#2311)
Other call sites need the call to readdir/getdents64.
2023-09-13 22:27:12 +09:00
3b12aaf2ab Do not escape percent (#2310)
This addresses warnings of the form:

grep: warning: stray \ before %
2023-09-10 12:51:36 +09:00
7e20278489 Address some Shellcheck SC2012 warnings (#2306) 2023-09-10 12:50:18 +09:00
fa3a472c6b Remove several calls to free (#2308) 2023-09-06 23:50:33 +09:00
5f38301861 Emit unexpected file names in failed test_list (#2307) 2023-09-06 23:47:12 +09:00
a74034a012 Fixed a bug with setting the statvfs value 2023-09-05 09:03:11 -07:00