From d0007186e5821d622d11bfce95d6db3ac04fd14c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Mon, 26 Nov 2007 16:02:10 +0000 Subject: [PATCH] The fs_shell cache implementation had the same problem as our real cache until r22998 - but since this was the only implementation, its consequences were much more likely. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23000 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/tools/fs_shell/file_cache.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/tools/fs_shell/file_cache.cpp b/src/tools/fs_shell/file_cache.cpp index 8fc5d5893e..53d860d8a7 100644 --- a/src/tools/fs_shell/file_cache.cpp +++ b/src/tools/fs_shell/file_cache.cpp @@ -89,8 +89,8 @@ read_from_file(file_cache_ref *ref, void *cookie, fssh_off_t offset, mutex_unlock(&ref->lock); - fssh_status_t status = vfs_read_pages(ref->node, cookie, offset, &vec, 1, - &bufferSize, false); + fssh_status_t status = vfs_read_pages(ref->node, cookie, + offset + pageOffset, &vec, 1, &bufferSize, false); mutex_lock(&ref->lock); @@ -108,8 +108,8 @@ write_to_file(file_cache_ref *ref, void *cookie, fssh_off_t offset, mutex_unlock(&ref->lock); - fssh_status_t status = vfs_write_pages(ref->node, cookie, offset, &vec, 1, - &bufferSize, false); + fssh_status_t status = vfs_write_pages(ref->node, cookie, + offset + pageOffset, &vec, 1, &bufferSize, false); mutex_lock(&ref->lock);