Re: [PATCH] 9p: treat read return values of 0 as EOF

From: David Howells

Date: Mon Jul 13 2026 - 05:29:57 EST


This is kind of a weird situation. We're caching locally the content of files
aren't really regular files and probably shouldn't be cached. I'm not sure
what the best way to deal with that is. I wonder if there's some way to
detect that and mark then non-cacheable. (Assuming the server can be told not
to even serve them).

Can we detect that the EOF length doesn't match i_size and set a flag to say
"don't cache" in netfs_inode::flags?

David