Skip to content

Commit c6f1414

Browse files
author
Dominique Martinet
committed
9p: document short read behaviour with O_NONBLOCK
Regular files opened with O_NONBLOCK allow read to return after a single round-trip with the server instead of trying to fill buffer. Add a few lines in 9p documentation to describe that. Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Dominique Martinet <[email protected]>
1 parent 4365749 commit c6f1414

File tree

1 file changed

+10
-0
lines changed
  • Documentation/filesystems

1 file changed

+10
-0
lines changed

Documentation/filesystems/9p.txt

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,16 @@ OPTIONS
133133
cache tags for existing cache sessions can be listed at
134134
/sys/fs/9p/caches. (applies only to cache=fscache)
135135

136+
BEHAVIOR
137+
========
138+
139+
This section aims at describing 9p 'quirks' that can be different
140+
from a local filesystem behaviors.
141+
142+
- Setting O_NONBLOCK on a file will make client reads return as early
143+
as the server returns some data instead of trying to fill the read
144+
buffer with the requested amount of bytes or end of file is reached.
145+
136146
RESOURCES
137147
=========
138148

0 commit comments

Comments
 (0)