[PATCH] Linux: Add test case for bug 33245
Collin Funk
collin.funk1@gmail.com
Sat Aug 2 19:35:08 GMT 2025
Florian Weimer <fweimer@redhat.com> writes:
> + ssize_t copied = copy_file_range (source_fd, NULL, dest_fd, NULL, size, 0);
> + /* Avoid FAIL_UNSUPPORTED if it is likely bogus due to previous
> + copy_file_range successes. */
> + if (copied == -1 && errno == ENOSYS)
> + {
> + /* Unmounting avoids a test hang on exit. */
> + xclose (dest_fd);
> + xclose (source_fd);
> + support_fuse_unmount (f);
> + FAIL_UNSUPPORTED ("copy_file_range not supported");
> + }
Thanks for the fix and for remembering about the Hurd stub. :)
Reviewed-by: Collin Funk <collin.funk1@gmail.com>
Collin
More information about the Libc-alpha
mailing list