block_cache: Implement cache_has_block_in_transaction function that will check the existence of block in one specific transaction.

Signed-off-by: Augustin Cavalier <[email protected]>
This commit is contained in:
hyche
2017-12-10 11:02:56 -05:00
committed by Augustin Cavalier
parent 8137f447cb
commit 1750cd1e92
5 changed files with 33 additions and 0 deletions
+2
View File
@@ -62,6 +62,8 @@ extern int32_t fssh_cache_blocks_in_main_transaction(void *_cache,
int32_t id);
extern int32_t fssh_cache_blocks_in_sub_transaction(void *_cache,
int32_t id);
extern bool fssh_cache_has_block_in_transaction(void *_cache,
int32_t id, fssh_off_t blockNumber);
/* block cache */
extern void fssh_block_cache_delete(void *_cache, bool allowWrites);