Files
frameworks_base/core/java/android/os
Zim 6502f59a98 Fix FileUtils#copy to fallback on userspace copy if sendfile fails
As per the manpage, sendfile(2) might fail for the following reasons:
1. input fd doesn't support mmap
2. output was opened with O_APPEND

If sendfile(2) fails with EINVAL or ENOSYS, we fallback to userspace
copy

Fixed failing FileUtilsTest#convertToModernFd test since
I7d6ecf4549e8ed5134d20977c2089240be804827 that stoped matching valid
files to convert to modernfd with regex

Test: atest FileUtilsTest
Bug: 184236915
Change-Id: I0955fe2a7dfb40ac1f78bde4a325eb624a34f28b
2021-04-12 12:52:47 +00:00
..
2021-02-22 08:38:52 +00:00
2021-01-12 16:15:52 -08:00
2020-12-10 22:53:07 +00:00
2021-02-25 14:51:01 -08:00
2021-02-21 09:39:53 -08:00
…
2021-03-18 11:03:45 +00:00
2021-03-25 13:21:02 +00:00