Skip to content

Drop mutability from FileReadWriteAtVolatile

Sergio Lopez requested to merge (removed):drop_readwrite_clone into main

Internally, the FileReadWriteAtVolatile methods are going to use pread/pwrite family of syscalls, which implies the file descriptor offset is not altered. With this in mind, drop the mutability requirement on the File argument.

This change allows us to drop the "try_clone()" on PassthroughFs::[read()|write()], saving a "dup()" syscall on both of those critical paths.

Signed-off-by: Sergio Lopez slp@redhat.com

Merge request reports