RFC: More functions allowed with O_PATH
Since fsync(), fdatasync(), syncfs() work on an identifying descriptor, and all work against a read-only file for example,
should any/all these functions work with a descriptor opened with O_PATH ?
thanks,
Pádraig.
Quoted 3 lines · P??draig Brady
Since
fsync(),fdatasync(),syncfs()work on an identifying descriptor, and all work against a read-only file for example,
should any/all these functions work with a descriptor opened withO_PATH?
fsync and fdatasync work on the file data, so they defintively shouldn't.
syncfs might make sense as we just use it as a handle for the containing filesystem.
Adding fchmod and fchown would be more useful as they are allowed by Posix on O_EXEC and O_SEARCH fds.