From f085f5b0126f62c957f1a6925c49655a4edd7c4d Mon Sep 17 00:00:00 2001 From: Ingo Weinhold Date: Wed, 3 Nov 2010 20:42:17 +0000 Subject: [PATCH] * checksumfs_write_stat(): Actually add the node to the transaction as the comment claims. Spotted by Axel. * Added preallocate() slot to gCheckSumFSVnodeOps. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39283 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/tests/system/kernel/file_corruption/fs/checksumfs.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/tests/system/kernel/file_corruption/fs/checksumfs.cpp b/src/tests/system/kernel/file_corruption/fs/checksumfs.cpp index a0de2ab7eb..ddbb57d526 100644 --- a/src/tests/system/kernel/file_corruption/fs/checksumfs.cpp +++ b/src/tests/system/kernel/file_corruption/fs/checksumfs.cpp @@ -1438,7 +1438,7 @@ checksumfs_write_stat(fs_volume* fsVolume, fs_vnode* vnode, // start a transaction and add the node to it (write locks the node, too) Transaction transaction(volume); - status_t error = transaction.Start(); + status_t error = transaction.StartAndAddNode(node); if (error != B_OK) return error; @@ -2346,6 +2346,7 @@ fs_vnode_ops gCheckSumFSVnodeOps = { checksumfs_access, checksumfs_read_stat, checksumfs_write_stat, + NULL, // preallocate /* file operations */ checksumfs_create,