1647cff2eSAxel Dörfler /* 2647cff2eSAxel Dörfler * Copyright 2001-2010 pinc Software. All Rights Reserved. 3*8f087d87SAlexander von Gluck IV * Released under the terms of the MIT license. 4647cff2eSAxel Dörfler */ 5647cff2eSAxel Dörfler #ifndef DUMP_H 6647cff2eSAxel Dörfler #define DUMP_H 7647cff2eSAxel Dörfler 8647cff2eSAxel Dörfler 9647cff2eSAxel Dörfler #include "bfs.h" 10647cff2eSAxel Dörfler 11647cff2eSAxel Dörfler 12647cff2eSAxel Dörfler struct bplustree_node; 13647cff2eSAxel Dörfler struct bplustree_header; 14647cff2eSAxel Dörfler class Inode; 15647cff2eSAxel Dörfler 16647cff2eSAxel Dörfler 17647cff2eSAxel Dörfler extern void dump_block_run(const char* prefix, const block_run& run, 18647cff2eSAxel Dörfler const char *postfix = NULL); 19647cff2eSAxel Dörfler extern void dump_super_block(const disk_super_block* superBlock); 20647cff2eSAxel Dörfler extern void dump_data_stream(const bfs_inode* inode, const data_stream* stream, 21647cff2eSAxel Dörfler bool showOffsets = false); 22647cff2eSAxel Dörfler extern void dump_small_data(Inode* inode); 23647cff2eSAxel Dörfler extern void dump_inode(const Inode* node, const bfs_inode* inode, 24647cff2eSAxel Dörfler bool showOffsets = false); 25647cff2eSAxel Dörfler extern char* get_tupel(uint32 id); 26647cff2eSAxel Dörfler 27647cff2eSAxel Dörfler extern void dump_bplustree_header(const bplustree_header* header); 28647cff2eSAxel Dörfler extern void dump_bplustree_node(const bplustree_node* node, 29647cff2eSAxel Dörfler const bplustree_header* header, Disk* disk = NULL); 30647cff2eSAxel Dörfler 31647cff2eSAxel Dörfler extern void dump_block(const char *buffer, uint32 size, int8 valueSize = 0); 32647cff2eSAxel Dörfler 33647cff2eSAxel Dörfler #endif /* DUMP_H */ 34