2 * Copyright (c) 2004, 2005 Christophe Varoqui
10 get_checker_id (char * str)
12 if (0 == strncmp(str, "tur", 3))
14 if (0 == strncmp(str, "readsector0", 11))
16 if (0 == strncmp(str, "directio", 8))
18 if (0 == strncmp(str, "emc_clariion", 12))
20 if (0 == strncmp(str, "hp_sw", 5))
26 get_checker_addr (int id)
28 int (*checker) (int, char *, void **);
35 checker = &readsector0;
41 checker = &emc_clariion;
54 get_checker_name (char * str, int id)
78 if (snprintf(str, CHECKER_NAME_SIZE, "%s", s) >= CHECKER_NAME_SIZE) {
79 fprintf(stderr, "checker_name too small\n");