Skip to contentSkip to conversation

RFC: More functions allowed with O_PATH

DISCUSSION Pádraig Brady 2 participants 2 messages Jan 27, 2015

lore
Share & tools
lore
#0 lore raw

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.

#1 lore raw
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 with O_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.