Ignore lookup errors in FUSE readdir
ReaddirPlus does a lookup on directory entries to get file attributes from
lower file system. If directory entries returned from MediaProvider database
includes stale entries, lookup can fail with 'No such file or
directory'. Since we can't guarantee to have a clean database with no
stale entries, ReaddirPlus should ignore such lookup failures.
Lookups can also fail if the path doesn't match with FuseDaemon ID or
calling UID, ignore both lookup failures.
Bug: 145745132
Test: atest -c FuseDaemonHostTest#testListDirectoryWithMediaFiles
atest -c FuseDaemonHostTest#testListDirectoryWithNonMediaFiles
Change-Id: Icc38d04c8f5ecd4d298cfcbfc427d9430044f2b8
1 file changed