On Wed, Feb 11, 2015 at 11:42:19AM -0500, J. Bruce Fields wrote: > I guess. Presumably the filesystem already does something like that on > read, so I find it hard to imagine that extra check is expensive, > especially if it's amortized over large-ish reads. Seems worth checking > at least. The filesystem zero-fills blocks when reading them from disk, which is serveral layers away from where it interacts with nfsd. We've been looking at an extension to read to return AGAIN when data can't be read at the momemnt, it would be logical to base on that and just return a hole size if there isn't any data, but implementing that would be a fair amount of work. -- 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