diff options
author | Nick Rosbrook <enr0n@ubuntu.com> | 2024-04-18 18:01:42 +0200 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2024-04-19 02:57:25 +0200 |
commit | c0bc1e897178da521e74acb270843805f5906adf (patch) | |
tree | 94ac046b974f57bfbc12df81598d81547771b8ea | |
parent | Merge pull request #32299 from yuwata/network-radv-ignore-rs-from-the-same-in... (diff) | |
download | systemd-c0bc1e897178da521e74acb270843805f5906adf.tar.xz systemd-c0bc1e897178da521e74acb270843805f5906adf.zip |
copy: ignore -EOPNOTSUPP from copy_file_range()
According to copy_file_range (2), errno will be set to EOPNOTSUPP when
the file system does not support copy_file_range(). Since there is
already fallback logic in place here for other kinds of errors, add
-EOPNOTSUPP to the list of ignored errors.
-rw-r--r-- | src/shared/copy.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/shared/copy.c b/src/shared/copy.c index 2374fa3b62..8389774db7 100644 --- a/src/shared/copy.c +++ b/src/shared/copy.c @@ -335,7 +335,7 @@ int copy_bytes_full( if (try_cfr) { n = try_copy_file_range(fdf, NULL, fdt, NULL, m, 0u); if (n < 0) { - if (!IN_SET(n, -EINVAL, -ENOSYS, -EXDEV, -EBADF)) + if (!IN_SET(n, -EINVAL, -ENOSYS, -EXDEV, -EBADF, -EOPNOTSUPP)) return n; try_cfr = false; |