.. | .. |
---|
18 | 18 | #endif |
---|
19 | 19 | |
---|
20 | 20 | #define SHA256_DIGEST_SIZE 32 |
---|
| 21 | +#define INCFS_MAX_MTREE_LEVELS 8 |
---|
| 22 | + |
---|
| 23 | +unsigned int rnd(unsigned int max, unsigned int *seed); |
---|
| 24 | + |
---|
| 25 | +int remove_dir(const char *dir); |
---|
| 26 | + |
---|
| 27 | +int drop_caches(void); |
---|
21 | 28 | |
---|
22 | 29 | int mount_fs(const char *mount_dir, const char *backing_dir, |
---|
23 | 30 | int read_timeout_ms); |
---|
.. | .. |
---|
45 | 52 | |
---|
46 | 53 | int open_log_file(const char *mount_dir); |
---|
47 | 54 | |
---|
| 55 | +int open_blocks_written_file(const char *mount_dir); |
---|
| 56 | + |
---|
48 | 57 | int wait_for_pending_reads(int fd, int timeout_ms, |
---|
49 | 58 | struct incfs_pending_read_info *prs, int prs_count); |
---|
50 | 59 | |
---|
51 | | -char *concat_file_name(const char *dir, char *file); |
---|
| 60 | +int wait_for_pending_reads2(int fd, int timeout_ms, |
---|
| 61 | + struct incfs_pending_read_info2 *prs, int prs_count); |
---|
| 62 | + |
---|
| 63 | +char *concat_file_name(const char *dir, const char *file); |
---|
52 | 64 | |
---|
53 | 65 | void sha256(const char *data, size_t dsize, char *hash); |
---|
54 | 66 | |
---|