Lines Matching refs:hdr
96 struct undo_header hdr;
122 static void dump_header(struct undo_header *hdr)
124 printf("nr keys:\t%llu\n", ext2fs_le64_to_cpu(hdr->num_keys));
125 printf("super block:\t%llu\n", ext2fs_le64_to_cpu(hdr->super_offset));
126 printf("key block:\t%llu\n", ext2fs_le64_to_cpu(hdr->key_offset));
127 printf("block size:\t%u\n", ext2fs_le32_to_cpu(hdr->block_size));
128 printf("fs block size:\t%u\n", ext2fs_le32_to_cpu(hdr->fs_block_size));
129 printf("super crc:\t0x%x\n", ext2fs_le32_to_cpu(hdr->sb_crc));
130 printf("state:\t\t0x%x\n", ext2fs_le32_to_cpu(hdr->state));
131 printf("compat:\t\t0x%x\n", ext2fs_le32_to_cpu(hdr->f_compat));
132 printf("incompat:\t0x%x\n", ext2fs_le32_to_cpu(hdr->f_incompat));
133 printf("rocompat:\t0x%x\n", ext2fs_le32_to_cpu(hdr->f_rocompat));
134 if (e2undo_has_feature_fs_offset(hdr))
135 printf("fs offset:\t%llu\n", ext2fs_le64_to_cpu(hdr->fs_offset));
136 printf("header crc:\t0x%x\n", ext2fs_le32_to_cpu(hdr->header_crc));
193 if (ext2fs_le32_to_cpu(ctx->hdr.sb_crc) != sb_crc) {
371 -(int)sizeof(undo_ctx.hdr),
372 &undo_ctx.hdr);
377 if (memcmp(undo_ctx.hdr.magic, E2UNDO_MAGIC,
378 sizeof(undo_ctx.hdr.magic))) {
383 dump_header(&undo_ctx.hdr);
386 hdr_crc = ext2fs_crc32c_le(~0, (unsigned char *)&undo_ctx.hdr,
389 if (!force && ext2fs_le32_to_cpu(undo_ctx.hdr.header_crc) != hdr_crc) {
394 undo_ctx.blocksize = ext2fs_le32_to_cpu(undo_ctx.hdr.block_size);
395 undo_ctx.fs_blocksize = ext2fs_le32_to_cpu(undo_ctx.hdr.fs_block_size);
410 undo_ctx.super_block = ext2fs_le64_to_cpu(undo_ctx.hdr.super_offset);
411 undo_ctx.num_keys = ext2fs_le64_to_cpu(undo_ctx.hdr.num_keys);
414 * Do not compare undo_ctx.hdr.f_compat with the available compatible
418 if (!force && (undo_ctx.hdr.f_incompat || undo_ctx.hdr.f_rocompat)) {
453 if (*opt_offset_string || e2undo_has_feature_fs_offset(&undo_ctx.hdr)) {
455 offset = ext2fs_le64_to_cpu(undo_ctx.hdr.fs_offset);
491 lblk = ext2fs_le64_to_cpu(undo_ctx.hdr.key_offset);
618 if (!(ext2fs_le32_to_cpu(undo_ctx.hdr.state) & E2UNDO_STATE_FINISHED)) {