Exemplo n.º 1
0
void verify_save_state(void)
{
	struct all_io_list *state;
	size_t sz;

	state = get_all_io_list(IO_LIST_ALL, &sz);
	if (state) {
		__verify_save_state(state, "local");
		free(state);
	}
}
Exemplo n.º 2
0
void verify_save_state(int mask)
{
    struct all_io_list *state;
    size_t sz;

    state = get_all_io_list(mask, &sz);
    if (state) {
        char prefix[PATH_MAX];

        if (aux_path)
            sprintf(prefix, "%s%slocal", aux_path, FIO_OS_PATH_SEPARATOR);
        else
            strcpy(prefix, "local");

        __verify_save_state(state, prefix);
        free(state);
    }
}