mirror of
https://github.com/amadvance/snapraid.git
synced 2026-11-29 19:37:06 -05:00
Allow to specify multiple content files.
This commit is contained in:
parent
045602581e
commit
99420cffab
10 changed files with 232 additions and 107 deletions
18
elem.h
18
elem.h
|
|
@ -44,6 +44,14 @@ typedef uint32_t block_off_t;
|
|||
*/
|
||||
typedef int64_t data_off_t;
|
||||
|
||||
/**
|
||||
* Content file specification.
|
||||
*/
|
||||
struct snapraid_content {
|
||||
char content[PATH_MAX]; /**< Path of the content file. */
|
||||
tommy_node node; /**< Next node in the list. */
|
||||
};
|
||||
|
||||
/**
|
||||
* Filter for paths.
|
||||
*/
|
||||
|
|
@ -99,6 +107,16 @@ struct snapraid_disk {
|
|||
tommy_array blockarr; /**< Block array of the disk. */
|
||||
};
|
||||
|
||||
/**
|
||||
* Allocates a content.
|
||||
*/
|
||||
struct snapraid_content* content_alloc(const char* path);
|
||||
|
||||
/**
|
||||
* Deallocates a content.
|
||||
*/
|
||||
void content_free(struct snapraid_content* content);
|
||||
|
||||
/**
|
||||
* Allocates an exclusion.
|
||||
*/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue