equal
deleted
inserted
replaced
35 * Read some data from the given fd into this cache entry. Size may contain a non-zero value to hint at how many |
35 * Read some data from the given fd into this cache entry. Size may contain a non-zero value to hint at how many |
36 * bytes should be read, or zero to just read a suitable amount. Should be updated to how many bytes were actually |
36 * bytes should be read, or zero to just read a suitable amount. Should be updated to how many bytes were actually |
37 * written (may be zero if writes are currently paused). |
37 * written (may be zero if writes are currently paused). |
38 */ |
38 */ |
39 int (*fn_op_push) (struct cache_op *, int fd, size_t *size); |
39 int (*fn_op_push) (struct cache_op *, int fd, size_t *size); |
|
40 |
|
41 /* |
|
42 * Write some data into the given fd from this cache entry. Size either specifies how many bytes to read (and |
|
43 * should not be more than is available), or zero to read as much as possible. Offset is the offset from the |
|
44 * beginning of the cache entry, and should be updated to what the next unread byte would be. Size should be |
|
45 * updated to how many bytes was read. |
|
46 */ |
|
47 int (*fn_op_pull) (struct cache_op *, int fd, size_t *offset, size_t *size); |
40 |
48 |
41 /* |
49 /* |
42 * No more calls to fn_op_push will take place. The cache entry now contains the complete data. |
50 * No more calls to fn_op_push will take place. The cache entry now contains the complete data. |
43 */ |
51 */ |
44 int (*fn_op_done) (struct cache_op *); |
52 int (*fn_op_done) (struct cache_op *); |