Changeset 25125

Show
Ignore:
Timestamp:
04/24/08 07:28:41 (7 months ago)
Author:
axeld
Message:

* Inode::_GrowStream() did not make the double indirect block writable before

adding a block to its array. This could cause all kinds of trouble, and
fixes at least a part of #2148.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • haiku/trunk/src/add-ons/kernel/file_systems/bfs/Inode.cpp

    r24816 r25125  
    17551755                                        // do we need a new array block? 
    17561756                                        if (array[indirectIndex % runsPerBlock].IsZero()) { 
     1757                                                cached.MakeWritable(transaction); 
     1758 
    17571759                                                status = _AllocateBlockArray(transaction, 
    17581760                                                        array[indirectIndex % runsPerBlock]);