On Tue, Jan 27, 2015 at 12:58:55PM +0000, P??draig Brady wrote: > 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. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/

