* Added function block_cache_discard() that flushes blocks from the block cache,
discarding their changes. This functionality currently only works correctly when no transactions are used. * Started test application for the block cache, doesn't do anything yet. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28496 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -820,6 +820,7 @@
|
||||
#define block_cache_create fssh_block_cache_create
|
||||
#define block_cache_sync fssh_block_cache_sync
|
||||
#define block_cache_sync_etc fssh_block_cache_sync_etc
|
||||
#define block_cache_discard fssh_block_cache_discard
|
||||
#define block_cache_make_writable fssh_block_cache_make_writable
|
||||
#define block_cache_get_writable_etc fssh_block_cache_get_writable_etc
|
||||
#define block_cache_get_writable fssh_block_cache_get_writable
|
||||
|
||||
@@ -70,6 +70,8 @@ extern void * fssh_block_cache_create(int fd, fssh_off_t numBlocks,
|
||||
extern fssh_status_t fssh_block_cache_sync(void *_cache);
|
||||
extern fssh_status_t fssh_block_cache_sync_etc(void *_cache,
|
||||
fssh_off_t blockNumber, fssh_size_t numBlocks);
|
||||
extern void fssh_block_cache_discard(void *_cache,
|
||||
fssh_off_t blockNumber, fssh_size_t numBlocks);
|
||||
extern fssh_status_t fssh_block_cache_make_writable(void *_cache,
|
||||
fssh_off_t blockNumber, int32_t transaction);
|
||||
extern void * fssh_block_cache_get_writable_etc(void *_cache,
|
||||
|
||||
Reference in New Issue
Block a user