On Mon, Jan 23, 2017 at 05:25:34PM +0000, Trond Myklebust wrote: > In that case the client will be required to continue to need to send > mtime/ctime in order to ensure that we get the same historical > semantics w.r.t. ftruncate() vs truncate(). > > IOW: It's not a question of the client being lazy about clearing the > flags. It's a question of enforcing the correct semantics. No, the NFS spec requires the server to add an implicit mtime when the size actually changes. In fact the current code has a comment pointing to the section: * RFC5661, Section 18.30.4: * Changing the size of a file with SETATTR indirectly * changes the time_modify and change attributes. * * (and similar for the older RFCs) And yes, I've double checked that in the RFC. -- To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html