sunrpc patch that fixes nfs-server failure when reading files of specific sizes

George Prekas prekgeo@yahoo.com
Mon Nov 4 10:52:00 GMT 2013


Nfs-server occasionally fails when serving files of specific sizes. The Linux client reports an input/output error and the user has to umount and mount the NFS share in order to continue using it.

The problem happens when the file's size is: 8192*k + 3896 or 8192*k + 3896 + 3996 where k = 0,1,2,...

Example file sizes are: 3896, 7892, 12088, 16084

Sunrpc sends data in chunks and under some conditions it fails to recognize that it is sending the last chunk and does not set the corresponding flag (last fragment bit).

The procedure to apply the patch is the following:
* Download source packages nfs-server and sunrpc.
* Execute fix_xdrrec_putbytes.sh

--
George Prekas
Dipl. Electrical and Computer Engineer, National Technical University of Athens
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fix_xdrrec_putbytes.sh
Type: application/x-sh
Size: 236 bytes
Desc: not available
URL: <http://cygwin.com/pipermail/cygwin-apps/attachments/20131104/4fce07b9/attachment.sh>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fix_compile.patch.bin
Type: application/octet-stream
Size: 505 bytes
Desc: not available
URL: <http://cygwin.com/pipermail/cygwin-apps/attachments/20131104/4fce07b9/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fix_xdrrec_putbytes.patch.bin
Type: application/octet-stream
Size: 696 bytes
Desc: not available
URL: <http://cygwin.com/pipermail/cygwin-apps/attachments/20131104/4fce07b9/attachment-0001.bin>


More information about the Cygwin-apps mailing list