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

Function warning_geometry_ncurses

src/godmode.c:345–369  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

343
344#ifdef HAVE_NCURSES
345static void warning_geometry_ncurses(disk_t *disk_car, const unsigned int recommanded_heads_per_cylinder)
346{
347 aff_copy(stdscr);
348 wmove(stdscr,4,0);
349 wprintw(stdscr,"%s",disk_car->description(disk_car));
350 wmove(stdscr,6,0);
351 wprintw(stdscr, "Warning: the current number of heads per cylinder is %u",
352 disk_car->geom.heads_per_cylinder);
353 wmove(stdscr,7,0);
354 wprintw(stdscr,"but the correct value may be %u.",recommanded_heads_per_cylinder);
355 wmove(stdscr,8,0);
356 wprintw(stdscr,"You can use the Geometry menu to change this value.");
357 wmove(stdscr,9,0);
358 wprintw(stdscr,"It's something to try if");
359 wmove(stdscr,10,0);
360 wprintw(stdscr,"- some partitions are not found by TestDisk");
361 wmove(stdscr,11,0);
362 wprintw(stdscr,"- or the partition table can not be written because partitions overlap.");
363 wmove(stdscr,22,0);
364 wattrset(stdscr, A_REVERSE);
365 wprintw(stdscr,"[ Continue ]");
366 wattroff(stdscr, A_REVERSE);
367 wrefresh(stdscr);
368 while(wgetch(stdscr)==ERR);
369}
370#endif
371
372static void hint_insert(uint64_t *tab, const uint64_t offset, unsigned int *tab_nbr)

Callers 1

warning_geometryFunction · 0.85

Calls 1

aff_copyFunction · 0.70

Tested by

no test coverage detected