From 550f245a9dff28eaf60d85bfd0fc4de7dc06086e Mon Sep 17 00:00:00 2001 From: Michael Lotz Date: Mon, 31 Mar 2008 19:47:00 +0000 Subject: [PATCH] This was probably changed by accident in r22886. It caused all read/write pages calls of the fat filesystem to return an error instead of the effective result. Please shout if this was done on purpose. I tested a bit with a fat volume and where it failed previously when opening files it now works as expected. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@24711 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/add-ons/kernel/file_systems/fat/file.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/add-ons/kernel/file_systems/fat/file.c b/src/add-ons/kernel/file_systems/fat/file.c index 7f41fa9f91..ae90d4e887 100644 --- a/src/add-ons/kernel/file_systems/fat/file.c +++ b/src/add-ons/kernel/file_systems/fat/file.c @@ -1527,7 +1527,7 @@ dosfs_read_pages(fs_volume _fs, fs_vnode _node, fs_cookie _cookie, off_t pos, UNLOCK_VOL(vol); } - return B_ERROR; + return status; } @@ -1579,7 +1579,7 @@ dosfs_write_pages(fs_volume _fs, fs_vnode _node, fs_cookie _cookie, off_t pos, UNLOCK_VOL(vol); } - return B_ERROR; + return status; }