Commit 3569b053 authored by Paul Lawrence's avatar Paul Lawrence Committed by Treehugger Robot
Browse files

ANDROID: fuse: Update file size in fuse_passthrough_splice_write



This bug was caused by the file being written with splices through fuse,
then read a short while later. This would succeed if the inode got
evicted, but not otherwise. The reason is that the inode size was not
being updated, so it would report a size of 0 through certain routes.

Without this fix, splice writes will work but will leave the inode in an
inconsistent state. The below test will fail most of the time (9 times
out of 11 in my testing.)

With this fix the test passes consistently (11/11 times)

Bug: 355866306
Test: atest CtsScopedStorageDeviceOnlyTest:android.scopedstorage.cts.device.StorageOtherFilesTest#other_accessLocationMetadata
Signed-off-by: default avatarPaul Lawrence <paullawrence@google.com>
Change-Id: Ic9c7ccd51f8d3a1fe35964a336c780a94c604180
parent 09d40ffd
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment