MCPcopy Create free account
hub / github.com/cgsecurity/testdisk / recover_ZFS

Function recover_ZFS

src/zfs.c:79–99  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

77}
78
79int recover_ZFS(const disk_t *disk, const struct vdev_boot_header *sb,partition_t *partition,const int verbose, const int dump_ind)
80{
81 if(test_ZFS(disk, sb, partition, dump_ind)!=0)
82 return 1;
83 if(partition==NULL)
84 return 0;
85 set_ZFS_info(sb, partition);
86 partition->part_type_i386=P_LINUX;
87 partition->part_type_mac=PMAC_LINUX;
88 partition->part_type_sun=PSUN_LINUX;
89 partition->part_type_gpt=GPT_ENT_TYPE_SOLARIS_USR;
90 partition->part_size=(uint64_t)le64(sb->vb_offset);
91 partition->blocksize=0;
92 partition->sborg_offset=0;
93 partition->sb_offset=0;
94 if(verbose>0)
95 {
96 log_info("\n");
97 }
98 return 0;
99}

Callers 1

search_type_16Function · 0.85

Calls 2

test_ZFSFunction · 0.85
set_ZFS_infoFunction · 0.85

Tested by

no test coverage detected