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

Function adv_get_boot_description

src/adv.c:262–282  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

260
261#ifdef HAVE_NCURSES
262static const char *adv_get_boot_description(const partition_t *partition)
263{
264 assert(partition!=NULL);
265 if(is_part_linux(partition))
266 {
267 return "Locate ext2/ext3/ext4 backup superblock";
268 }
269 else if(is_part_hfs(partition) || is_part_hfsp(partition))
270 {
271 return "Locate HFS/HFS+ backup volume header";
272 }
273 else if(is_linux(partition))
274 {
275 return "Locate ext2/ext3/ext4 backup superblock";
276 }
277 else if(is_hfs(partition) || is_hfsp(partition))
278 {
279 return "Locate HFS/HFS+ backup volume header";
280 }
281 return "Boot sector recovery";
282}
283
284static const char *adv_get_options_for_partition(const partition_t *partition)
285{

Callers 1

interface_advFunction · 0.85

Calls 6

is_part_linuxFunction · 0.85
is_part_hfsFunction · 0.85
is_part_hfspFunction · 0.85
is_linuxFunction · 0.85
is_hfsFunction · 0.85
is_hfspFunction · 0.85

Tested by

no test coverage detected