1 /* 2 * Copyright 2001-2010 pinc Software. All Rights Reserved. 3 */ 4 #ifndef DUMP_H 5 #define DUMP_H 6 7 8 #include "bfs.h" 9 10 11 struct bplustree_node; 12 struct bplustree_header; 13 class Inode; 14 15 16 extern void dump_block_run(const char* prefix, const block_run& run, 17 const char *postfix = NULL); 18 extern void dump_super_block(const disk_super_block* superBlock); 19 extern void dump_data_stream(const bfs_inode* inode, const data_stream* stream, 20 bool showOffsets = false); 21 extern void dump_small_data(Inode* inode); 22 extern void dump_inode(const Inode* node, const bfs_inode* inode, 23 bool showOffsets = false); 24 extern char* get_tupel(uint32 id); 25 26 extern void dump_bplustree_header(const bplustree_header* header); 27 extern void dump_bplustree_node(const bplustree_node* node, 28 const bplustree_header* header, Disk* disk = NULL); 29 30 extern void dump_block(const char *buffer, uint32 size, int8 valueSize = 0); 31 32 #endif /* DUMP_H */ 33