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