Added new but empty function file_cache_invalidate_file_map().

This is needed in case the on-disk representation of a file changes (due to reorganization/defragmentation).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13660 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler
2005-07-13 16:33:05 +00:00
parent 1188944790
commit c9955bf00a
2 changed files with 8 additions and 1 deletions
+2 -1
View File
@@ -1,6 +1,6 @@
/* File System File and Block Caches
*
* Copyright 2004, Haiku Inc. All Rights Reserved.
* Copyright 2004-2005, Haiku Inc. All Rights Reserved.
* Distributed under the terms of the MIT License.
*/
#ifndef _FS_CACHE_H
@@ -47,6 +47,7 @@ extern void *file_cache_create(mount_id mountID, vnode_id vnodeID, off_t size, i
extern void file_cache_delete(void *_cacheRef);
extern status_t file_cache_set_size(void *_cacheRef, off_t size);
extern status_t file_cache_sync(void *_cache);
extern status_t file_cache_invalidate_file_map(void *_cacheRef, off_t offset, off_t size);
extern status_t file_cache_read_pages(void *_cacheRef, off_t offset,
const iovec *vecs, size_t count, size_t *_numBytes);
+6
View File
@@ -868,3 +868,9 @@ file_cache_write(void *_cacheRef, off_t offset, const void *buffer, size_t *_siz
}
extern "C" status_t
file_cache_invalidate_file_map(void *_cacheRef, off_t offset, off_t size)
{
// ToDo: implement me as soon as file maps (extents) are cached
return B_OK;
}