#
bf613907 |
| 08-May-2024 |
Juan José Arboleda |
linux,darwin: make `uv_fs_copyfile` behaves like `cp -r` (#4396) This commit changes the timestamps in the file, the ownership and the group. Fixes: https://github.com/libuv/lib
linux,darwin: make `uv_fs_copyfile` behaves like `cp -r` (#4396) This commit changes the timestamps in the file, the ownership and the group. Fixes: https://github.com/libuv/libuv/issues/3125 Signed-off-by: Juan José Arboleda <soyjuanarbol@gmail.com>
show more ...
|
#
8a499e13 |
| 22-Dec-2023 |
Matheus Izvekov |
win: stop using deprecated names (#4253)
|
#
011a1ac1 |
| 06-Oct-2023 |
Pleuvens |
test: switch to new-style ASSERT_EQ macros (#4159) Switch from old-style ASSERT macro to new-style ASSERT_EQ,... macros. Using new-style macros makes it easier to debug test failure
test: switch to new-style ASSERT_EQ macros (#4159) Switch from old-style ASSERT macro to new-style ASSERT_EQ,... macros. Using new-style macros makes it easier to debug test failures Fixes: https://github.com/libuv/libuv/issues/2974
show more ...
|
#
91a7e498 |
| 12-Mar-2023 |
Trevor Norris |
test: silence more valgrind warnings (#3917) Pass the loop to MAKE_VALGRIND_HAPPY() so it's explicit on which loop needs to be cleaned up. Since it asserts on uv_loop_close(), need to
test: silence more valgrind warnings (#3917) Pass the loop to MAKE_VALGRIND_HAPPY() so it's explicit on which loop needs to be cleaned up. Since it asserts on uv_loop_close(), need to remove a couple of those that were being done before the call. Cleanup where loop was assigned, so the entire test either uses loop or uv_default_loop(). Not both. Also take care of any reqs that may have been left uncleaned.
show more ...
|
#
ee206367 |
| 22-Jan-2023 |
Jameson Nash |
build,test: fix distcheck errors (#3886) When run under distcheck, the libuv source permissions are read-only, which makes this test copyfile fail without explicit correction to the
build,test: fix distcheck errors (#3886) When run under distcheck, the libuv source permissions are read-only, which makes this test copyfile fail without explicit correction to the permissions.
show more ...
|
#
6564ccc9 |
| 09-Oct-2021 |
Jameson Nash |
asan: fix some tests (#3323) Previously they were just being run incorrectly, but nothing wrong with the test itself. We were also interpreting an ASAN failure as TEST_SKIP, so test
asan: fix some tests (#3323) Previously they were just being run incorrectly, but nothing wrong with the test itself. We were also interpreting an ASAN failure as TEST_SKIP, so test failures would not actually be reported as CI failures.
show more ...
|
Revision tags: v1.41.0, v1.40.0 |
|
#
97a90330 |
| 20-Sep-2020 |
gengjiawen |
build: add asan checks Fixes: https://github.com/libuv/libuv/issues/2999 PR-URL: https://github.com/libuv/libuv/pull/2998 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed
build: add asan checks Fixes: https://github.com/libuv/libuv/issues/2999 PR-URL: https://github.com/libuv/libuv/pull/2998 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
show more ...
|
#
ed5b42d5 |
| 22-Sep-2020 |
Elad Lahav |
build,unix: add QNX support Refs: https://github.com/libuv/libuv/pull/2881 PR-URL: https://github.com/libuv/libuv/pull/2991 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Review
build,unix: add QNX support Refs: https://github.com/libuv/libuv/pull/2881 PR-URL: https://github.com/libuv/libuv/pull/2991 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
show more ...
|
Revision tags: v1.39.0 |
|
#
278cfa01 |
| 05-Aug-2020 |
cjihrig |
unix: handle src, dest same in uv_fs_copyfile() This commit handles the case where the source and destination are the same. This behavior was originally addressed in #2298, but the t
unix: handle src, dest same in uv_fs_copyfile() This commit handles the case where the source and destination are the same. This behavior was originally addressed in #2298, but the test added in that PR doesn't validate the file size after the operation. This commit also updates the test to check for that case. Refs: https://github.com/libuv/libuv/pull/2298 Refs: https://github.com/nodejs/node/issues/34624 PR-URL: https://github.com/libuv/libuv/pull/2947 Reviewed-By: Santiago Gimeno <santiago.gimeno@gmail.com> Reviewed-By: Richard Lau <riclau@uk.ibm.com> Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Jameson Nash <vtjnash@gmail.com>
show more ...
|
Revision tags: v1.38.1, v1.38.0, v1.37.0, v1.36.0, v1.35.0, v1.34.2 |
|
#
ed1dc853 |
| 13-Jan-2020 |
Xu Meng |
ibmi: skip unsupported fs test cases On IBMi PASE, we need to skip some file permission tests for `root`. And the file stat of symbolic links are different as well. PR-URL: http
ibmi: skip unsupported fs test cases On IBMi PASE, we need to skip some file permission tests for `root`. And the file stat of symbolic links are different as well. PR-URL: https://github.com/libuv/libuv/pull/2628 Reviewed-By: Richard Lau <riclau@uk.ibm.com> Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
show more ...
|
Revision tags: v1.34.1, v1.34.0, v1.33.1, v1.33.0 |
|
#
ddcaff9a |
| 14-Oct-2019 |
Stefan Bender |
unix: update uv_fs_copyfile() fallback logic This commit fixes uv_fs_copyfile() in cases where an unknown error occurs when copy-on-write is requested by setting UV_FS_COPYFILE_FICLO
unix: update uv_fs_copyfile() fallback logic This commit fixes uv_fs_copyfile() in cases where an unknown error occurs when copy-on-write is requested by setting UV_FS_COPYFILE_FICLONE. The original approach tried to catch some of the errors raised by the ioctl() call, assuming that sendfile() would also fail in those cases. This is not necessarily true, as some variants of ioctl() also raise EINVAL (some maybe EBADF), but sendfile() works just fine. This patch reverses the logic, falling back to sendfile() in any case where ioctl() returns an error. In other words, it tries much harder to make uv_fs_copyfile() work. Related to that, the original approach returned UV_ENOTSUP unconditionally in cases where ioctl() failed and UV_FS_COPYFILE_FICLONE_FORCE was set. However, ioctl() may have failed for other reasons than being not supported. The function now returns the actual error raised by ioctl(), leaving it to the caller to deal with it. Fixes: https://github.com/libuv/libuv/issues/2483 PR-URL: https://github.com/libuv/libuv/pull/2514 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Saúl Ibarra Corretgé <saghul@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
show more ...
|
Revision tags: v1.32.0, v1.31.0, v1.30.1, v1.30.0, v1.29.1 |
|
#
0b29acb0 |
| 17-May-2019 |
Santiago Gimeno |
fs: fix uv_fs_copyfile if same src and dst Specifically return success. It fixes a tight loop on unices as `sendfile()` was returning 0 and also makes the function behave the same bo
fs: fix uv_fs_copyfile if same src and dst Specifically return success. It fixes a tight loop on unices as `sendfile()` was returning 0 and also makes the function behave the same both on `unix` and `windows`. It partially implements: https://github.com/libuv/libuv/issues/2237 PR-URL: https://github.com/libuv/libuv/pull/2298 Refs: https://github.com/nodejs/node/issues/27746 Reviewed-By: Jameson Nash <vtjnash@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
show more ...
|
#
abe4f3d5 |
| 07-Jun-2019 |
Leorize |
build, core, unix: add support for Haiku This commit add support for Haiku, an open-source operating system inspired by BeOS. PR-URL: https://github.com/libuv/libuv/pull/2301
build, core, unix: add support for Haiku This commit add support for Haiku, an open-source operating system inspired by BeOS. PR-URL: https://github.com/libuv/libuv/pull/2301 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
show more ...
|
Revision tags: v1.29.0, v1.28.0 |
|
#
c7b87b0d |
| 27-Mar-2019 |
Rich Trott |
fs: add test for copyfile() respecting permissions Add test to test-fs-copyfile.c to check that uv_fs_copyfile() respects destination file permissions. Previously, in macOS, it did not.
fs: add test for copyfile() respecting permissions Add test to test-fs-copyfile.c to check that uv_fs_copyfile() respects destination file permissions. Previously, in macOS, it did not. PR-URL: https://github.com/libuv/libuv/pull/2233 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Santiago Gimeno <santiago.gimeno@gmail.com> Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com>
show more ...
|
Revision tags: v1.27.0 |
|
#
aa4ff14a |
| 21-Feb-2019 |
Andrew Paprocki |
test,sunos: use unistd.h code branch Tests do not compile when selecting the non-`unistd.h` branch. PR-URL: https://github.com/libuv/libuv/pull/2200 Reviewed-By: Ben Noordhuis <
test,sunos: use unistd.h code branch Tests do not compile when selecting the non-`unistd.h` branch. PR-URL: https://github.com/libuv/libuv/pull/2200 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
show more ...
|
Revision tags: v1.26.0, v1.25.0, v1.24.1, v1.24.0, v1.23.2, v1.23.1, v1.23.0, v1.22.0, v1.21.0 |
|
#
6103d294 |
| 03-Jun-2018 |
cjihrig |
unix: return UV_ENOTSUP on FICLONE_FORCE failure Instead of returning whatever error is provided by the underlying platform, use UV_ENOTSUP. Fixes: https://github.com/libuv/libu
unix: return UV_ENOTSUP on FICLONE_FORCE failure Instead of returning whatever error is provided by the underlying platform, use UV_ENOTSUP. Fixes: https://github.com/libuv/libuv/issues/1862 PR-URL: https://github.com/libuv/libuv/pull/1863 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Santiago Gimeno <santiago.gimeno@gmail.com>
show more ...
|
Revision tags: v1.20.3, v1.20.2, v1.20.1, v1.20.0 |
|
#
3ae88200 |
| 07-Mar-2018 |
cjihrig |
unix,win: add UV_FS_COPYFILE_FICLONE_FORCE support UV_FS_COPYFILE_FICLONE_FORCE attempts to use copy-on-write semantics in uv_fs_copyfile(). If CoW is not available, an error is retu
unix,win: add UV_FS_COPYFILE_FICLONE_FORCE support UV_FS_COPYFILE_FICLONE_FORCE attempts to use copy-on-write semantics in uv_fs_copyfile(). If CoW is not available, an error is returned. Refs: https://github.com/libuv/libuv/pull/1465 Refs: https://github.com/libuv/libuv/pull/1491 PR-URL: https://github.com/libuv/libuv/pull/1768 Reviewed-By: Santiago Gimeno <santiago.gimeno@gmail.com>
show more ...
|
Revision tags: v1.19.2, v1.19.1, v1.19.0, v1.18.0, v1.17.0, v1.16.1, v1.16.0, v1.15.0, v1.14.1 |
|
#
db918361 |
| 18-Aug-2017 |
cjihrig |
unix: add UV_FS_COPYFILE_FICLONE support UV_FS_COPYFILE_FICLONE attemps to use copy-on-write semantics in uv_fs_copyfile(). If CoW is not available, it falls back to a normal copy op
unix: add UV_FS_COPYFILE_FICLONE support UV_FS_COPYFILE_FICLONE attemps to use copy-on-write semantics in uv_fs_copyfile(). If CoW is not available, it falls back to a normal copy operation. Refs: https://github.com/libuv/libuv/pull/1465 PR-URL: https://github.com/libuv/libuv/pull/1491 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Santiago Gimeno <santiago.gimeno@gmail.com>
show more ...
|
#
e485d286 |
| 21-Feb-2018 |
Joyee Cheung |
test: add tests for bad inputs This commit adds tests that pass bad options to uv_fs_copyfile(), uv_fs_read(), and uv_fs_write(). These tests verify that the asynchronous version of
test: add tests for bad inputs This commit adds tests that pass bad options to uv_fs_copyfile(), uv_fs_read(), and uv_fs_write(). These tests verify that the asynchronous version of these functions do not hold the event loop open on bad inputs. Refs: https://github.com/nodejs/node/pull/18811 PR-URL: https://github.com/libuv/libuv/pull/1747 Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
show more ...
|
#
b0653625 |
| 18-Sep-2017 |
Nick Logan |
unix: truncate destination in uv_fs_copyfile() This commit adds the O_TRUNC flag to the destination file in the sendfile() fallback. This allows smaller source files to be properly c
unix: truncate destination in uv_fs_copyfile() This commit adds the O_TRUNC flag to the destination file in the sendfile() fallback. This allows smaller source files to be properly copied into larger existing destination files. Refs: https://github.com/libuv/libuv/pull/1551 PR-URL: https://github.com/libuv/libuv/pull/1552 Reviewed-By: Santiago Gimeno <santiago.gimeno@gmail.com> Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
show more ...
|
#
a41f8b52 |
| 19-Sep-2017 |
cjihrig |
unix: support copying empty files Initialize the error variable in uv_fs_copyfile() to zero. If the source file being copied has no data in it, then it's possible to make it to the e
unix: support copying empty files Initialize the error variable in uv_fs_copyfile() to zero. If the source file being copied has no data in it, then it's possible to make it to the exit without ever setting error. In this situation, the function's behavior is unpredictable. Refs: https://github.com/libuv/libuv/pull/1551 PR-URL: https://github.com/libuv/libuv/pull/1552 Reviewed-By: Santiago Gimeno <santiago.gimeno@gmail.com> Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
show more ...
|
#
7a0e64d2 |
| 25-Aug-2017 |
cjihrig |
unix,windows: init all requests in fs calls Prior to this change, several of the fs functions checked for invalid arguments before initializing the fs request. If a consumer received
unix,windows: init all requests in fs calls Prior to this change, several of the fs functions checked for invalid arguments before initializing the fs request. If a consumer received a UV_EINVAL from one of these functions, and then called uv_fs_req_cleanup(), the application would crash, as the pointer being freed was not allocated. This commit makes sure that all fs functions initialize the request before returning. Fixes: https://github.com/libuv/libuv/issues/1508 PR-URL: https://github.com/libuv/libuv/pull/1509 Reviewed-By: Bartosz Sosnowski <bartosz@janeasystems.com> Reviewed-By: Saúl Ibarra Corretgé <saghul@gmail.com>
show more ...
|
#
8a95c6b5 |
| 19-Aug-2017 |
cjihrig |
unix,win: check for bad flags in uv_fs_copyfile() Refs: https://github.com/libuv/libuv/pull/1465 PR-URL: https://github.com/libuv/libuv/pull/1493 Reviewed-By: Santiago Gimeno <santia
unix,win: check for bad flags in uv_fs_copyfile() Refs: https://github.com/libuv/libuv/pull/1465 PR-URL: https://github.com/libuv/libuv/pull/1493 Reviewed-By: Santiago Gimeno <santiago.gimeno@gmail.com> Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
show more ...
|
Revision tags: v1.14.0 |
|
#
766d7e9c |
| 15-Jul-2017 |
cjihrig |
unix, windows: add basic uv_fs_copyfile() Fixes: https://github.com/libuv/libuv/issues/925 PR-URL: https://github.com/libuv/libuv/pull/1465 Reviewed-By: Bartosz Sosnowski <bartosz@ja
unix, windows: add basic uv_fs_copyfile() Fixes: https://github.com/libuv/libuv/issues/925 PR-URL: https://github.com/libuv/libuv/pull/1465 Reviewed-By: Bartosz Sosnowski <bartosz@janeasystems.com> Reviewed-By: Santiago Gimeno <santiago.gimeno@gmail.com> Reviewed-By: Saúl Ibarra Corretgé <saghul@gmail.com> Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
show more ...
|