On Mon, 2012-05-07 at 12:52 -0500, Malahal Naineni wrote: > Hi All, > > An application running on an NFS file got short read (received > fewer bytes than requested). At the same time, we noticed few ESTALE > errors for NFS READ Calls in the tcpdump. We lost few packets in the > tcpdump, so can't say if there were any other errors at that time. What > are the circumstances (other than the ones listed below) where NFS > client can send a short read to the application in buffered read system > call? > > EOF is not reached, no direct I/O is involved, and the read syscall is not > interrupted, of course! If you are seeing ESTALE errors in response to the READ rpc calls, then that means that the file is no longer readable, and so the read syscall will return whatever buffered data it had prior to the ESTALE occurring. That's 100% POSIXly correct behaviour... -- Trond Myklebust Linux NFS client maintainer NetApp Trond.Myklebust@xxxxxxxxxx www.netapp.com ��.n��������+%������w��{.n�����{��w���jg��������ݢj����G�������j:+v���w�m������w�������h�����٥