* The file map needs to know the actual file size to be able to know if it has
the complete extent info or not. * file_map_translate() now cuts down the request to the file bounds. * Adjusted BFS and FAT to the API changes. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22913 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -67,7 +67,7 @@ extern status_t file_cache_write(void *_cacheRef, void *cookie, off_t offset,
|
||||
const void *buffer, size_t *_size);
|
||||
|
||||
/* file map */
|
||||
extern void *file_map_create(dev_t mountID, ino_t vnodeID);
|
||||
extern void *file_map_create(dev_t mountID, ino_t vnodeID, off_t size);
|
||||
extern void file_map_delete(void *_map);
|
||||
extern void file_map_set_size(void *_map, off_t size);
|
||||
extern void file_map_invalidate(void *_map, off_t offset, off_t size);
|
||||
|
||||
@@ -84,7 +84,7 @@ extern fssh_status_t fssh_file_cache_write(void *_cacheRef, void *cookie,
|
||||
|
||||
/* file map */
|
||||
extern void * fssh_file_map_create(fssh_mount_id mountID,
|
||||
fssh_vnode_id vnodeID);
|
||||
fssh_vnode_id vnodeID, fssh_off_t size);
|
||||
extern void fssh_file_map_delete(void *_map);
|
||||
extern void fssh_file_map_set_size(void *_map, fssh_off_t size);
|
||||
extern void fssh_file_map_invalidate(void *_map, fssh_off_t offset,
|
||||
|
||||
Reference in New Issue
Block a user