Changeset 25249

Show
Ignore:
Timestamp:
04/29/08 12:15:35 (7 months ago)
Author:
axeld
Message:

* Fixed at least the "dd" part of bug #2148: the second double indirect array

block would be incorrectly addressed when allocating a stream - this could
cause random blocks to be overwritten, and therefore could cause many sorts
of problems.

* Moved BFS_TRACING macro to the tracing_config.h file, and let it follow the

new semantics of those other macros in there.

Location:
haiku/trunk
Files:
5 modified

Legend:

Unmodified
Added
Removed
  • haiku/trunk/build/config_headers/tracing_config.h

    r25235 r25249  
    1919// macros specifying the tracing level for individual components (0 is disabled) 
    2020 
     21#define BFS_TRACING                                                             0 
     22#define BLOCK_CACHE_TRANSACTION_TRACING                 0 
    2123#define BMESSAGE_TRACING                                                0 
    22 #define BLOCK_CACHE_TRANSACTION_TRACING                 0 
    2324#define KERNEL_HEAP_TRACING                                             0 
    2425#define PAGE_ALLOCATION_TRACING                                 0 
  • haiku/trunk/src/add-ons/kernel/file_systems/bfs/BlockAllocator.cpp

    r24852 r25249  
    3737// have some real world tests. 
    3838 
    39 #if defined(BFS_TRACING) && !defined(BFS_SHELL) && !defined(_BOOT_MODE) 
     39#if BFS_TRACING && !defined(BFS_SHELL) && !defined(_BOOT_MODE) 
    4040namespace BFSBlockTracing { 
    4141 
  • haiku/trunk/src/add-ons/kernel/file_systems/bfs/Inode.cpp

    r25140 r25249  
    1313 
    1414 
    15 #if defined(BFS_TRACING) && !defined(BFS_SHELL) && !defined(_BOOT_MODE) 
     15#if BFS_TRACING && !defined(BFS_SHELL) && !defined(_BOOT_MODE) 
    1616namespace BFSInodeTracing { 
    1717 
     
    17341734                                - data->MaxIndirectRange(); 
    17351735                        int32 indirectIndex = start / indirectSize; 
    1736                         int32 index = start / directSize; 
     1736                        int32 index = (start % indirectSize) / directSize; 
    17371737 
    17381738                        // distribute the blocks to the array and allocate 
  • haiku/trunk/src/add-ons/kernel/file_systems/bfs/Jamfile

    r23657 r25249  
    1212        local defines = 
    1313                BFS_DEBUGGER_COMMANDS 
    14                 #BFS_TRACING 
    1514                #BFS_BIG_ENDIAN_ONLY 
    1615                ; 
     
    4847 
    4948SEARCH on [ FGristFiles 
    50                 kernel_cpp.cpp  
     49                kernel_cpp.cpp 
    5150        ] = [ FDirName $(HAIKU_TOP) src system kernel util ] ; 
    5251 
  • haiku/trunk/src/add-ons/kernel/file_systems/bfs/Journal.cpp

    r24856 r25249  
    8383 
    8484 
    85 #if defined(BFS_TRACING) && !defined(BFS_SHELL) && !defined(_BOOT_MODE) 
     85#if BFS_TRACING && !defined(BFS_SHELL) && !defined(_BOOT_MODE) 
    8686namespace BFSJournalTracing { 
    8787