diff options
author | Colin Walters <walters@verbum.org> | 2020-06-16 19:55:25 +0000 |
---|---|---|
committer | Colin Walters <walters@verbum.org> | 2020-06-16 19:55:25 +0000 |
commit | cd5a57e8ddfe2b847cf0466808daeee78fcf5a9c (patch) | |
tree | 4684b39082511a2fab7533693391b2eaa76c5199 | |
parent | 3c285a7b3a3335a24aadd56df6d7bb0beb0604e8 (diff) | |
parent | 7e3a19958e6af94b764c772a58adf47e6cc4b678 (diff) | |
download | libglnx-cd5a57e8ddfe2b847cf0466808daeee78fcf5a9c.tar.gz |
Merge branch 'pr/cfr-nfs' into 'master'
glnx-fdio: handle EOPNOTSUPP for copy_file_range
See merge request GNOME/libglnx!18
-rw-r--r-- | glnx-fdio.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/glnx-fdio.c b/glnx-fdio.c index 6ae6ec7..e537a9b 100644 --- a/glnx-fdio.c +++ b/glnx-fdio.c @@ -826,7 +826,7 @@ glnx_regfile_copy_bytes (int fdf, int fdt, off_t max_bytes) have_cfr = 0; try_cfr = false; } - else if (errno == EXDEV) + else if (G_IN_SET (errno, EXDEV, EOPNOTSUPP)) /* We won't try cfr again for this run, but let's be * conservative and not mark it as available/unavailable until * we know for sure. |