2026-04-02 16:00:27 +02:00
|
|
|
// SPDX-License-Identifier: GPL-3.0-or-later
|
2026-04-02 16:25:49 +02:00
|
|
|
// Copyright (C) 2011 Andrea Mazzoleni
|
2011-04-23 21:38:26 +02:00
|
|
|
|
2026-10-13 11:20:19 +02:00
|
|
|
#ifndef SNAPRAID_H
|
|
|
|
|
#define SNAPRAID_H
|
2011-04-23 21:38:26 +02:00
|
|
|
|
|
|
|
|
/****************************************************************************/
|
|
|
|
|
/* snapraid */
|
|
|
|
|
|
2026-01-08 17:28:35 +01:00
|
|
|
void speed(int period, int disks_number, int blocks_size);
|
2026-08-26 15:45:52 +02:00
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Runs the extensive test suite, including all unit tests and selftest.
|
|
|
|
|
*/
|
|
|
|
|
void test(int argc, char* argv[]);
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Runs a fast self-test for functionality that could be miscompiled,
|
|
|
|
|
* primarily to verify inline assembly clobber and ABI requirements.
|
|
|
|
|
*/
|
2013-10-03 22:44:33 +02:00
|
|
|
void selftest(void);
|
2026-08-26 15:45:52 +02:00
|
|
|
|
2025-09-26 09:49:20 +02:00
|
|
|
int snapraid_main(int argc, char* argv[]);
|
2011-04-23 21:38:26 +02:00
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|