Allow to specify multiple content files.

This commit is contained in:
Andrea Mazzoleni 2011-04-25 13:43:51 +02:00
parent 045602581e
commit 99420cffab
10 changed files with 232 additions and 107 deletions

View file

@ -37,11 +37,11 @@ struct snapraid_state {
int expect_recoverable; /**< Expect presence of recoverable error in checking. */
int need_write; /**< If the state is changed. */
uint32_t block_size; /**< Block size in bytes. */
char content[PATH_MAX]; /**< Path of the content file. */
char parity[PATH_MAX]; /**< Path of the parity file. */
char qarity[PATH_MAX]; /**< Path of the qarity file. */
unsigned level; /**< Number of parity levels. 1 for RAID5, 2 for RAID6. */
unsigned hash; /**< Hash kind used. */
tommy_list contentlist; /**< List of content files. */
tommy_array diskarr; /**< Disk array. */
tommy_list excludelist; /**< List of exclusion. */
};