On Tue, Sep 09, 2014 at 10:49:55AM -0400, Anna Schumaker wrote: > + struct nfs_server *server = NFS_SERVER(inode); > + long ret = -EOPNOTSUPP; > + > + if (server->caps & NFS_CAP_ALLOCATE) { > + ret = nfs42_proc_allocate(inode, stateid, offset, len); > + if (ret == -EOPNOTSUPP) > + server->caps &= ~NFS_CAP_ALLOCATE; > + } So if we want clients to allow this sort of optimization we can't return NFSERR_PNOTSUPP if it's called on the "wrong" kind of file. Back to the drawing board on that one. -- To unsubscribe from this list: send the line "unsubscribe linux-nfs" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html