Christopher Collins created MYNEWT-165:
------------------------------------------

             Summary: NFFS - Block collation during garbage collection can 
break parent file
                 Key: MYNEWT-165
                 URL: https://issues.apache.org/jira/browse/MYNEWT-165
             Project: Mynewt
          Issue Type: Bug
          Components: NFFS
            Reporter: Christopher Collins
            Assignee: Christopher Collins
             Fix For: v0_8_0_beta2


During garbage collection, consecutive data blocks in the area being GCed are 
collated into a single block.  The resulting block should inherit its ID from 
its last constituent data block, as this is the ID that the parent inode and 
subsequent data block reference.

The code gets this backwards; the resulting block inherits its ID from its 
*first* constituent data block.

The fix is to inherit from the last block.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to