diff options
author | Dominique Martinet <[email protected]> | 2022-01-10 20:10:31 +0900 |
---|---|---|
committer | Dominique Martinet <[email protected]> | 2022-01-11 15:21:53 +0900 |
commit | 19d1c32652bbbf406063025354845fdddbcecd3a (patch) | |
tree | 57f52600d66502bfc8a649a573768c0fe08d870c /tools/perf/scripts/python/export-to-sqlite.py | |
parent | 15e2721b19acb1bfb18ac90775503b75d8aecbb2 (diff) |
9p: fix enodata when reading growing file
Reading from a file that was just extended by a write, but the write had
not yet reached the server would return ENODATA as illustrated by this
command:
$ xfs_io -c 'open -ft test' -c 'w 4096 1000' -c 'r 0 1000'
wrote 1000/1000 bytes at offset 4096
1000.000000 bytes, 1 ops; 0.0001 sec (5.610 MiB/sec and 5882.3529 ops/sec)
pread: No data available
Fix this case by having netfs assume zeroes when reads from server come
short like AFS and CEPH do
Link: https://lkml.kernel.org/r/[email protected]
Cc: [email protected]
Fixes: eb497943fa21 ("9p: Convert to using the netfs helper lib to do reads and caching")
Co-authored-by: David Howells <[email protected]>
Reviewed-by: David Howells <[email protected]>
Tested-by: David Howells <[email protected]>
Signed-off-by: Dominique Martinet <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions