19 #include <signaldata/SignalData.hpp>
20 #include "diskpage.hpp"
26 File_formats::Zero_page_header::init(File_type ft,
31 memcpy(m_magic,
"NDBDISK", 8);
32 m_byte_order = 0x12345678;
33 m_page_size = File_formats::NDB_PAGE_SIZE;
34 m_ndb_version = version;
41 File_formats::Zero_page_header::validate(File_type ft,
53 out <<
"page size: " << obj.m_page_size << endl;
54 out <<
"ndb version: " << obj.m_ndb_version <<
", " <<
55 ndbGetVersionString(obj.m_ndb_version, 0, 0, buf,
sizeof(buf)) << endl;
56 out <<
"ndb node id: " << obj.m_node_id << endl;
57 out <<
"file type: " << obj.m_file_type << endl;
58 out <<
"time: " << obj.m_time <<
", "
59 << ctime((time_t*)&obj.m_time)<< endl;
66 out << obj.m_page_header << endl;
67 out <<
"m_file_no: " << obj.m_file_no << endl;
68 out <<
"m_tablespace_id: " << obj.m_tablespace_id << endl;
69 out <<
"m_tablespace_version: " << obj.m_tablespace_version << endl;
70 out <<
"m_data_pages: " << obj.m_data_pages << endl;
71 out <<
"m_extent_pages: " << obj.m_extent_pages << endl;
72 out <<
"m_extent_size: " << obj.m_extent_size << endl;
73 out <<
"m_extent_count: " << obj.m_extent_count << endl;
74 out <<
"m_extent_headers_per_page: " << obj.m_extent_headers_per_page << endl;
75 out <<
"m_extent_header_words: " << obj.m_extent_header_words << endl;
76 out <<
"m_extent_header_bits_per_page: " << obj.m_extent_header_bits_per_page << endl;
84 out << obj.m_page_header << endl;
85 out <<
"m_file_id: " << obj.m_file_id << endl;
86 out <<
"m_logfile_group_id: " << obj.m_logfile_group_id << endl;
87 out <<
"m_logfile_group_version: " << obj.m_logfile_group_version << endl;
88 out <<
"m_undo_pages: " << obj.m_undo_pages << endl;