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

Function interface_check_disk_capacity

src/diskcapa.c:68–81  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

66#endif
67
68int interface_check_disk_capacity(disk_t *disk_car)
69{
70 /* Test for LBA28 limitation */
71 if(disk_car->geom.sectors_per_head>0 &&
72 disk_car->geom.cylinders == (((1<<28)-1) / disk_car->geom.heads_per_cylinder / disk_car->geom.sectors_per_head))
73 {
74 log_warning("LBA28 limitation\n");
75 log_flush();
76#ifdef HAVE_NCURSES
77 return interface_check_disk_capacity_ncurses(disk_car);
78#endif
79 }
80 return 0;
81}

Callers 2

Calls 2

log_flushFunction · 0.85

Tested by

no test coverage detected