From 3daf03d3abcdec867fcc4682dd3106b2ba3c9f72 Mon Sep 17 00:00:00 2001 From: Ingo Weinhold Date: Tue, 8 Apr 2008 21:14:21 +0000 Subject: [PATCH] I broke the index dir access when changing the FS interface. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@24868 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- .../kernel/file_systems/bfs/kernel_interface.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/add-ons/kernel/file_systems/bfs/kernel_interface.cpp b/src/add-ons/kernel/file_systems/bfs/kernel_interface.cpp index 83feadc14b..84be89828b 100644 --- a/src/add-ons/kernel/file_systems/bfs/kernel_interface.cpp +++ b/src/add-ons/kernel/file_systems/bfs/kernel_interface.cpp @@ -1791,7 +1791,7 @@ bfs_open_index_dir(fs_volume *_volume, void **_cookie) fs_vnode indicesNode; indicesNode.private_node = volume->IndicesNode(); - if (indicesNode.private_node != NULL) + if (indicesNode.private_node == NULL) return B_ENTRY_NOT_FOUND; RETURN_ERROR(bfs_open_dir(_volume, &indicesNode, _cookie)); @@ -1807,7 +1807,7 @@ bfs_close_index_dir(fs_volume *_volume, void *_cookie) fs_vnode indicesNode; indicesNode.private_node = volume->IndicesNode(); - if (indicesNode.private_node != NULL) + if (indicesNode.private_node == NULL) return B_ENTRY_NOT_FOUND; RETURN_ERROR(bfs_close_dir(_volume, &indicesNode, _cookie)); @@ -1823,7 +1823,7 @@ bfs_free_index_dir_cookie(fs_volume *_volume, void *_cookie) fs_vnode indicesNode; indicesNode.private_node = volume->IndicesNode(); - if (indicesNode.private_node != NULL) + if (indicesNode.private_node == NULL) return B_ENTRY_NOT_FOUND; RETURN_ERROR(bfs_free_dir_cookie(_volume, &indicesNode, _cookie)); @@ -1839,7 +1839,7 @@ bfs_rewind_index_dir(fs_volume *_volume, void *_cookie) fs_vnode indicesNode; indicesNode.private_node = volume->IndicesNode(); - if (indicesNode.private_node != NULL) + if (indicesNode.private_node == NULL) return B_ENTRY_NOT_FOUND; RETURN_ERROR(bfs_rewind_dir(_volume, &indicesNode, _cookie)); @@ -1856,7 +1856,7 @@ bfs_read_index_dir(fs_volume *_volume, void *_cookie, struct dirent *dirent, fs_vnode indicesNode; indicesNode.private_node = volume->IndicesNode(); - if (indicesNode.private_node != NULL) + if (indicesNode.private_node == NULL) return B_ENTRY_NOT_FOUND; RETURN_ERROR(bfs_read_dir(_volume, &indicesNode, _cookie, dirent,