[Bug 1757] RFS does not set iop->size on open.

bugzilla-daemon at rtems.org bugzilla-daemon at rtems.org
Sat Mar 12 06:38:54 UTC 2011


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

Chris Johns <chrisj at rtems.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Attachment #1126|0                           |1
        is obsolete|                            |

--- Comment #3 from Chris Johns <chrisj at rtems.org> 2011-03-12 00:38:52 CST ---
Created an attachment (id=1133)
 --> (https://www.rtems.org/bugzilla/attachment.cgi?id=1133)
Fix size on open and seek

The patch fixes the size on open bug by setting the RTEMS iop size field.

It also fixes the seek to end then write bug. There where a couple of edge
cases where the pos was being tested as equal to the length. It is not. A file
grow needed to grow the length to the position + 1. The inode not being updated
was due to the map's offset being set (updated by the write) without the map
being marked as dirty. As a result the map was not pushed to the inode on
close. Writing over a block did tag the map as dirty.

-- 
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