sunrpc patch that fixes nfs-server failure when reading files of specific sizes
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 fix_xdrrec_putbytes.sh Description: Bourne shell script fix_compile.patch.bin Description: Binary data fix_xdrrec_putbytes.patch.bin Description: Binary data
Re: sunrpc patch that fixes nfs-server failure when reading files of specific sizes
Il 11/4/2013 11:52 AM, George Prekas ha scritto: 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 Hi George, unfortunately the nfs-server is without a package maintainer http://cygwin.com/cygwin-pkg-maint Are you interested to take over ? If so please look at http://cygwin.com/setup.html Regards MArco
Re: sunrpc patch that fixes nfs-server failure when reading files of specific sizes
On 11/4/2013 7:22 AM, marco atzeri wrote: Hi George, unfortunately the nfs-server is without a package maintainer http://cygwin.com/cygwin-pkg-maint Yes, but the patch is actually for sunrpc, of which I am (nominally) listed as the maintainer. There's an issue with sunrpc in general (I'll have to check my logs on that), but I'm saving a copy of George's patches for future use. George -- thanks for the testing and the patches. I can't predict how long it'll be until I can fold them in, but they will not be forgotten. I'm open to relinquishing sunrpc, rpcgen, and several other networking-related packages to a new maintainer if you're interested? (But, as you've noticed, they seem pretty interrelated so they ought to go to a common home without breaking up the family) -- Chuck