|
static void | dump (const char *name, uint64_t value, const uint8_t *data, size_t size) |
|
static bool | is_erasure (fec_handle *f, uint64_t offset, const uint8_t *data) |
|
static bool | is_zero (fec_handle *f, uint64_t offset) |
|
static int | __ecc_read (fec_handle *f, void *rs, uint8_t *dest, uint64_t offset, bool use_erasures, uint8_t *ecc_data, size_t *errors) |
|
static int | ecc_init (fec_handle *f, rs_unique_ptr &rs, std::unique_ptr< uint8_t[]> &ecc_data) |
|
static ssize_t | ecc_read (fec_handle *f, uint8_t *dest, size_t count, uint64_t offset, size_t *errors) |
|
static ssize_t | verity_read (fec_handle *f, uint8_t *dest, size_t count, uint64_t offset, size_t *errors) |
|
int | fec_seek (struct fec_handle *f, int64_t offset, int whence) |
|
ssize_t | fec_read (struct fec_handle *f, void *buf, size_t count) |
|
static size_t | get_max_count (uint64_t offset, size_t count, uint64_t max) |
|
bool | raw_pread (int fd, void *buf, size_t count, uint64_t offset) |
|
bool | raw_pwrite (int fd, const void *buf, size_t count, uint64_t offset) |
|
ssize_t | fec_pread (struct fec_handle *f, void *buf, size_t count, uint64_t offset) |
|