[Bug 1775] New: NFS read/write issues when requested bytes greater than nfsStBlksize.

bugzilla-daemon at rtems.org bugzilla-daemon at rtems.org
Fri Apr 1 13:05:57 UTC 2011


https://www.rtems.org/bugzilla/show_bug.cgi?id=1775

           Summary: NFS read/write issues when requested bytes greater
                    than nfsStBlksize.
           Product: RTEMS
           Version: 4.10
          Platform: All
        OS/Version: RTEMS
            Status: NEW
          Severity: normal
          Priority: P3
         Component: filesystem
        AssignedTo: chrisj at rtems.org
        ReportedBy: kevin.kirspel at optimedical.com


Created an attachment (id=1143)
 --> (https://www.rtems.org/bugzilla/attachment.cgi?id=1143)
Adds a check for nfsStBlksize on the buffer size for nfs_file_read() and
nfs_file_write().  Corrects usage of nfs_evalpath_arg in nfs_do_evalpath().

In nfs_file_read() and nfs_file_write(), if the requested number of bytes to
read/write is greater than nfsStBlksize the fragmented packets could be dropped
by the device driver.  The nfsStBlksize configuration variable is used to tell
NFS the maximum fragmented packet size that the hardware can handle. Anything
greater than this value would be dropped by the hardware. However, the
nfs_file_read() and nfs_file_write() do not adhere to this limit. Adding a
check to make sure the requested buffer size is not greater than nfsStBlksize
is required.

There is also a bug in the nfs_do_evalpath() function related to the recent
changes for 4.10.  A nfs_evalpath_arg union was created to pass data to
nfs_do_evalpath(), but was not being used in all instances within the function.

A patch is attached to address these two issues.

-- 
Configure bugmail: https://www.rtems.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.



More information about the bugs mailing list